i would like to know how can i rotate a block 180° everytime a press a key.
I can set the angle to 180°,but i want to see the block rotating.
I also tried the rotate behaviours but there is no controls on the angle.
Global number rot = 0
Keyboard| On Space pressed -> System| add 180 to rot
Block| Invert(is clockwise from rot) -> Block| Rotate 1 degrees clockwise
System| rot >= 360 -> System set rot to 0
Invert means that you Invert 'is clockwise from'
Develop games in your browser. Powerful, performant & highly capable.
I just changed a line to this:
Block| Invert(is clockwise from rot) -> Block| Rotate 1 degrees towards Rot
to make it work perfectly