move actor with a button

rubber-chickenrubber-chicken Member Posts: 12
edited November -1 in Working with GS (Mac)
hi guys, how can i move my player actor with a button actor??

Comments

  • JGary321JGary321 Member Posts: 1,246
    1. Create button.
    2. When mouse is over/mouse is down
    3. Move actor (set direction the way you want it to go) (then set speed for how fast)
    4. Repeat for all directions you want.
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    May I add, you would need global(game) attributes to know when a specific actor(button) is pressed so the actor to be moved needs to know when to move.
  • JGary321JGary321 Member Posts: 1,246
    Good call CodeMonkey. I was going by memory & forgot that part =p
Sign In or Register to comment.