actor following the mouse?
commandercody12
Member Posts: 4
I need my actor to follow my mouse position. its a game of where I use the actor to follow the mouse through a maze. how can I do that?
Comments
In your actor put two constrain attributes:
constrain attribute self.position x to device mouse position x
constrain attribute self.position y to device mouse position y
I really reccomend you to go through Youtube for gamesalad tutorial. You can also read more in the cookbook
https://help.gamesalad.com/hc/en-us/categories/200134158-Cookbook-Tutorials
Type or drag a 'Move To' block into your actor. Then click the little 'e' in the 'move to' section. Then you will want to look in 'attributes', 'devices', 'mouse', and 'x' in the first box, and y in the second box
And then specify your desired speed