Working with actor X & Y

lbc4everlbc4ever Member Posts: 18
edited February 2012 in Working with GS (Mac)
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

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    you can make 2 attributes tapX and tapY

    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
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    This might be helpful: http://forums.gamesalad.com/discussion/38998/-connecting-boxes-free-demo-by-tshirtbooth-
  • lbc4everlbc4ever Member Posts: 18
    Thanks again guys.. Always a rapid and concise solution on this forum.

    Appreciate the help.

    lbc4ever
Sign In or Register to comment.