How would I move an actor to the position that the user touched?
cousinjoshy
Member Posts: 34
How would I make it so when a user touched the screen the actor would move to the place that they touched. How would I do that?
Comments
When attribute game.Touched is False
And
When mouse button is down, change attribute game.Touched to true.
In your actor you want to move:
When attribute game.Touched is true,
Interpolate self position x to mousePositionX
Duration 0.2
Interpolate self position y to mousePositionY
Duration 0.2
Timer : after 0.3 seconds,
Change attribute game.Touched to false.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Try this:
http://www.mediafire.com/?rj8ognwvo43c5oj