Easy Ease

Get help using Construct 2

Post » Sun Dec 15, 2013 12:35 pm

Thanks @R0J0hound although I should correct myself. I am using AngleLerp to rotate the layout.

Please see the below capx

https://dl.dropboxusercontent.com/u/50465867/Construct/SpaceFlight.capx

Please use the arrow keys to navigate. Note that the camera will aim at you based on the planet's perspective. When you leave that planet and approach another, the camera rotates around to look at you from that planet's perspective. This assists in landing (and is no where near finished yet).

I dislike the sudden rotation, and would like a smooth change.

Is this possible using your example? The problem with rotation is that I want it to always rotate the shortest amount needed.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
80
S
12
G
7
Posts: 965
Reputation: 10,750

Post » Sun Dec 15, 2013 8:57 pm

You can make it ease in if you replace the actions in your last event with:

Camera: Rotate 100/anglediff(Camera.Angle, Pointers.Angle) degrees toward Pointer.Angle
System: Set layout angle to Camera.Angle+90

But then the rotation has a jarring stop instead of a jarring start. You could also use clamp to cap the maximum speed to reduce the jarring.
B
92
S
32
G
109
Posts: 5,291
Reputation: 70,993

Post » Mon Dec 16, 2013 2:59 pm

@R0J0hound

Thanks! I'm looking to combine the two... so it will smoothly begin to rotate, speed up, and then smoothly come to a stop. EaseInOut.

Interesting about the 100/anglediff though. Didn't know that!
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
80
S
12
G
7
Posts: 965
Reputation: 10,750

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests