Move to where you touch

JoVeJoVe Member Posts: 224
edited March 2012 in Working with GS (Mac)
Does anyone has a iPad template with the control system move where you touch, such as Air Attack(http://itunes.apple.com/nl/app/airattack-hd/id383659024)

Best Answer

  • Braydon_SFXBraydon_SFX Posts: 9,273
    edited March 2012 Accepted Answer
    Put this in the actor you want to move:


    when mouse is down
    interpolate self.position.x to mouse.position.x
    duration 0.2
    interpolate self.position.y to mouse.position.y
    duration 0.2

Answers

Sign In or Register to comment.