Working with actor X & Y
OK guys, another noob question for you,
I want to build a puzzle game where the player taps on one actor and then on a second. On the second tap the first actor moves to the location of the second and a boolean attribute decides wether it's a correct move or not. I can do the scoring etc but how in hades do I get gamesalad to record where I'm tapping and respond accordingly?
Thanks in advance
lbc4ever
I want to build a puzzle game where the player taps on one actor and then on a second. On the second tap the first actor moves to the location of the second and a boolean attribute decides wether it's a correct move or not. I can do the scoring etc but how in hades do I get gamesalad to record where I'm tapping and respond accordingly?
Thanks in advance
lbc4ever
Comments
Have a rule when touch is pressed:
-change attribute tapX to device.touch1.x
-change attribute tapY to device.touch1.y
Those 2 attributes will now have the position of the last touch stored in them, i think thats what your after.
cheers
Appreciate the help.
lbc4ever