how to control to different actors with swipe

I'm trying to control 2 different actors by swiping my finger or mouse over them in the direction I wan't them to go.

problem is both are moving at the same time I want them to move independent of each other ,I followed this tutorial http://forums.gamesalad.com/discussion/61307/swipe-to-move-an-actor-help.

Comments

  • Homebrew_KidHomebrew_Kid Member Posts: 21

    You would need to be able to practice it on a device but I would try to constrain:

    Actor 1
    self.position.x to game.touches.touch 1.x
    self.position.y to game.touches.touch 1.y

    Actor 2
    self.position.x to game.touches.touch 2.x
    self.position.y to game.touches.touch 2.y

  • hairykiwishairykiwis Member Posts: 4

    the actor disappears when I try that , can you please post a screen shot of the commands?

Sign In or Register to comment.