How do I speed up rotation angle for X seconds

Get help using Construct 2

Post » Fri Oct 23, 2015 7:53 pm

Hey guys :)

i have a circle that is spinning with the following event:
» System | Every tick | "Sprite" angle to self.Angle + 60*dt degrees

What i want is to speed up that rotation every 15 second for about 5 seconds and than back to normal speed.
I tried around with a few methods but i don't get it :shock:

Maybe someone can help me
Thank you buddys :D
B
7
S
2
Posts: 25
Reputation: 507

Post » Fri Oct 23, 2015 8:35 pm

I would use the rotate- and the timer-behavior for your circle.

Code: Select all
System| Every 15 seconds -> Sprite| Set Rotate speed to 'fast' degrees per second
                         -> Sprite| Start Timer "SlowDown" for 5.0(Once)

Sprite| On Timer "SlowDown" -> Sprite| Set Rotate speed to 'normal' degrees per second

normal and fast are your values.
B
24
S
3
G
1
Posts: 451
Reputation: 2,165

Post » Sat Oct 24, 2015 12:42 pm

Thanks but is the rotation behavior not to overpowered? I want to develope a mobile game and want to save memory :)
But i give it a try then i see what happens to the performance.

Thank you :D
B
7
S
2
Posts: 25
Reputation: 507

Post » Sat Oct 24, 2015 1:10 pm

Thanks but is the rotation behavior not to overpowered?


I don't think that it will have an effect of memory or performance. First, that are only a few bytes, second, I hope that developer of Construct knows best to make something like that most efficient.
B
24
S
3
G
1
Posts: 451
Reputation: 2,165

Post » Sat Oct 24, 2015 1:49 pm

Yeah thats right :D

I tested your lines of code an it works perfect for me! Thank you buddy :)
B
7
S
2
Posts: 25
Reputation: 507


Return to How do I....?

Who is online

Users browsing this forum: stevenode and 11 guests