help move an actor

saadaoui59saadaoui59 Member Posts: 13
edited May 2012 in Working with GS (Mac)
hello everybody so i have a question
I want my player move move to a position that I would have previously chosen by touching the screen
thank you

Answers

  • RAS_BryanRAS_Bryan Member Posts: 5
    I was able to do something similar.

    Add an actor with a rule, in that rule add a mouse button condition.

    Add two ConstrainAttribute behaviors, constrain that actor's position.x to devices.mouse.position.x and do the same for y. Now when you want to access the last click location, you can access the position of that actor using the long-form keypath.
Sign In or Register to comment.