How do I Smooth Transitions for Rotation

Get help using Construct 2

Post » Wed Apr 30, 2014 7:15 am

Hello,
i want to make a smooth transition for this code snippet:
dropbox.com/s/tbeg7ufsewiky36/how-do-i-transition.png

The transition is very hard, I want to make it smoother. Can anybody help me? Thanks a lot!
B
7
S
2
Posts: 84
Reputation: 754

Post » Wed Apr 30, 2014 7:42 am

Hi, If I am understanding you properly you have to give the player the rotation behaviour so that it can rotate smoothly while falling.

Manual Page here

https://www.scirra.com/manual/101/rotate
Cyberphaze

What we build can never be destroyed
B
136
S
18
G
6
Posts: 37
Reputation: 14,759

Post » Wed Apr 30, 2014 8:19 am

...hm, I want to make:
- if player is falling = rotate down
- if touch on screen = rotate up
B
7
S
2
Posts: 84
Reputation: 754

Post » Wed Apr 30, 2014 8:44 am

as @AbelaNET said one way is to use rotate -
You do not have the required permissions to view the files attached to this post.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,832

Post » Wed Apr 30, 2014 8:52 am

Hey, thanks. But, if I use the "System Else" condition, I've become an error like "Not valid here"...
B
7
S
2
Posts: 84
Reputation: 754

Post » Wed Apr 30, 2014 9:04 am

try changing it to your

player - platform is falling -- player rotate dt*20 towards 30
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,832

Post » Wed Apr 30, 2014 9:19 am

Thanks, I've found a solutions here:
scirra.com/forum/viewtopic.php?f=147&t=101378&p=764990&hilit=flappy+bird#p764990
B
7
S
2
Posts: 84
Reputation: 754


Return to How do I....?

Who is online

Users browsing this forum: luckyrawatlucky, nahima and 7 guests