Make a button trigger the rotation of another actor?
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
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)