# How do I make a object rotate to an angle using Custom Move?

Just started using Construct 2? Post your questions here

### » Sat Jun 27, 2015 5:56 pm

Yes, this is a completely beginner question. But I'm having a difficult time figuring out how to make something rotate, real time to a certain amount of degrees and then stop....

Then I'll have events rotating it back and rotating it again based on different situations. Is the custom movement best for this? The rotating behavior simply makes something spin, I need something to rotate to an angle and stop.

https://www.dropbox.com/s/vck39nf95ir5c ... .capx?dl=0
Risk Rocket now available on Google Play
B
36
S
15
G
6
Posts: 337
Reputation: 6,300

### » Sat Jun 27, 2015 7:43 pm

There are lot's of ways to rotate something, and it all depends on what you are trying to do exactly.

But basically, you don't need any behavior like custom movement or anything, just create the sprite, keep in mind that at 0º it'll be facing left, and then set to code to adjust it angle depending on what you wanna do exactly.

Try testing the functions under the "Angle" section, and if you can't find anything that helps you, try being more specific about what you're trying to do.

Sorry for not being able to help any further D:
B
17
S
7
Posts: 280
Reputation: 2,522

### » Sat Jun 27, 2015 8:05 pm

I'm simply trying to turn an object.... The rotate actions are instant, meaning if I set an object to rotate to a certain amount of degrees, it happen instantly. What I need to happen is for the object to actually turn to that angle and stop.
Risk Rocket now available on Google Play
B
36
S
15
G
6
Posts: 337
Reputation: 6,300

### » Sun Jun 28, 2015 6:57 am

Hummm..... Ok

See if any of these help https://dl.dropboxusercontent.com/u/183 ... otate.capx
B
17
S
7
Posts: 280
Reputation: 2,522

### » Sun Jun 28, 2015 8:19 pm

The Green circle is what I was looking for the most! Thanks Rayki. I got rid of the text box in my own version and added an event in place of it.

https://www.dropbox.com/s/elepp4siq6yrm ... .capx?dl=0

Although how do I make the object come back to it's original position? The block rotates 90 degrees, how do I make it reverse back 90 Degrees?
Risk Rocket now available on Google Play
B
36
S
15
G
6
Posts: 337
Reputation: 6,300

### » Tue Jul 14, 2015 8:27 am

Usman Haq wrote:The Green circle is what I was looking for the most! Thanks Rayki. I got rid of the text box in my own version and added an event in place of it.

https://www.dropbox.com/s/elepp4siq6yrm ... .capx?dl=0

Although how do I make the object come back to it's original position? The block rotates 90 degrees, how do I make it reverse back 90 Degrees?

I havent looked at the examples but

-90 degress should reverse it.
B
20
S
10
G
2
Posts: 169
Reputation: 3,400