Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
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
Download Capx
Develop games in your browser. Powerful, performant & highly capable.
thank you all