how do i activate button images to make my character move

THINGTHINGTHINGTHING Member Posts: 84
edited November -1 in Working with GS (Mac)
how do i activate button images to make my character move

Comments

  • specialist_3specialist_3 Member Posts: 121
    Say you have a Up button,

    Create a global attribute called Up.Pressed = 0

    Inside that button (actor), you create a Rule to say when its touched,
    Change attribute Up.Pressed = 1
    When Touch is released,
    Change attribute Up.Pressed = 0

    In your character, you create a Rule to say, if Game.Up.Pressed = 1,
    Then drag a MOVE/MOVE To or Accelerate/Accelerate To behavior and put in the values.
  • THINGTHINGTHINGTHING Member Posts: 84
    whats a global attribute im only new
  • THINGTHINGTHINGTHING Member Posts: 84
    how do i test that it worked
Sign In or Register to comment.