Mouse movement
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
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
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!