Move an Actor to a Specific area on the Scene
Hey guys,
How can I move my main actor (Player 1) to a specific location on my screen?
This is for a touch device. I dont want to create controls (Joystick/Arrow Keys).
When you touch an area I just want my character to move to that area. (Not drag and Drop)
Can anyone help me out??
Greatly Appreciated!
How can I move my main actor (Player 1) to a specific location on my screen?
This is for a touch device. I dont want to create controls (Joystick/Arrow Keys).
When you touch an area I just want my character to move to that area. (Not drag and Drop)
Can anyone help me out??
Greatly Appreciated!
![:) :)](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/smile.png)
Comments
I have a template for you (free) email me - matthewredler@gmail.com
Matt
and make a interger attribute called moveon
in the actor you have over the whole scene have a rule when touch is pressed change attribute moveon to 1
then in the otherwise section of that rule put a change attribute behavrior changing moveon to 0
then have a rule in the actor you want to move when attribute moveon=1
then put a move to behavior and for the x position select mouse position x, and for the y position select mouse position y and make sure its relative to scene
you can replace the move to behavior with accelerate too, interpolates, or whatever you want