Movement Question
conrad74
Member Posts: 50
I want to be able to rotate the actor in 90 degree increments using the left and right keyboard key only. For example, every time you press the "left" keyboard key, the actor will rotate counter-clockwise in 90 degree increments. If the actor is at 0 degrees and you press the "right" keyboard button, I want the actor to instantly be at 90 degrees (not move to 90 degrees). Please advise. Thanks!
Comments
Anyhow, to do what you want:
Rule key = left
Self.rotation = self.rotation + 90
Rule key right
Self.rotation = self.rotation - 90