actor following the mouse?

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

  • DuesDues Member Posts: 1,159

    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

  • SLOCM3ZSLOCM3Z Member Posts: 797

    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

  • SLOCM3ZSLOCM3Z Member Posts: 797

    And then specify your desired speed

Sign In or Register to comment.