Make a button trigger the rotation of another actor?

MSStudiosMSStudios Member Posts: 54
edited November -1 in Working with GS (Mac)
Okay, so I have left and right buttons, and a platform. I want the platform to tilt to the left when the left button is pressed (same for the right), how would I go about doing this?

Comments

  • DrGlickertDrGlickert Member Posts: 1,135
    You can do it this way;

    When left button is pressed change attribute Game.RotateLeft to True
    otherwise change attribute game.rotateleft to false

    When right button is pressed change attribute Game.RotateRight to True
    otherwise change attribute game.rotateright to false

    One the platform have a rule:
    When game.rotateleft is TRUE
    rotate left behaviors (I'm assuming you want it to be counterclockwise here?)

    WHen game.rotateright is TRUE
    rotate right behaviors (rotate clockwise)
  • MSStudiosMSStudios Member Posts: 54
    Ah, thank you :)
Sign In or Register to comment.