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
Our educational partners
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
hi, I'm new to construct 2 wanted to know how to rotate an object by holding down a button. thanks
Develop games in your browser. Powerful, performant & highly capable.
Looking for smooth rotation or by increments (like 45 degrees at a time)?
Smooth rotation, thanks for collaboration
So many ways to do this..
you have the rotate towards angle - action
The rotate towards position - action
the rotate behaviour
All depends on your needs..
(BTW: this topic should be in the How-do-I section of this forum)
Yeah, there are a lot of options, as LittleStain said.
One simple way is to do
Condition: Keyboard -> Key is down -> [Pick the key you want]
Action: [Select the sprite you want to rotate] -> Rotate clockwise or counterclockwise -> By 5 degrees (or whatever, holding the key down will keep it moving)
here you go a few examples on keyboard or automated by Sinebehavior
you can also check the forum for other rotational custom plugins /behaviors but there is no need for them actually
thank you all