Move an Actor to a Specific area on the Scene

Niecy242Niecy242 Member Posts: 1
edited November -1 in Working with GS (Mac)
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! :)

Comments

  • RedlerTechRedlerTech Member Posts: 1,583
    Yes easy :D
    I have a template for you (free) email me - matthewredler@gmail.com

    Matt :D
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    make a actor and drag it over your whole scene, and change the alpha to 0

    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
Sign In or Register to comment.