İncrease and Decrease photo in touchdesigner for touch screen

Hi,
On the touch screen, I want it to decrease by -1 when I touch the left of the screen, and increase by +1 when I touch the right. Currently it only increases by +1 when you touch the screen.

Hi @barisvkabalak,

can you explain a bit how you are currently doing this?
I would otherwise recommend using remapping the horizontal value with a Math CHOP to something like -1 to 1 and pass this as an increment into a Count CHOP.

cheers
Markus

Try a “PanelExec” DAT and use an if statement to see if the click is on the left or right side.

if parent().panel.u > .5:
		op('constant_count').par.value0 += 1
	else:
		op('constant_count').par.value0 -= 1