GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

move actor with a button

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

Comments

  • JGary321JGary321 Posts: 1,246Member
    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 Posts: 1,803Head Chef, Member, PRO
    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 Posts: 1,246Member
    Good call CodeMonkey. I was going by memory & forgot that part =p
This discussion has been closed.