Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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