Mouse movement

gregoirephilippegregoirephilippe Member Posts: 5
edited October 2012 in Working with GS (Mac)
Hi,

I'm new on game salad. I was wondering how to move my character with only the mouse. I want the character to go right when my mouse is moving right, and going left when my mouse goes left. I've tried a few things but can't seem to find the right combination of rules.

Thank you

Comments

  • carlblanchetcarlblanchet Member Posts: 755
    edited October 2012
    First of all welcome to gamesalad!

    For the character to follow the mouse:

    contraint attribute: self.position.x to devices(game).mouse.position.x
    &
    contraint attribute: self.position.y to devices(game).mouse.position.y

    That's it! :D
  • gregoirephilippegregoirephilippe Member Posts: 5
    sorry for the delay, thank you very much !
Sign In or Register to comment.