About the new interpolations...

Discussion and feedback on Construct 2

Post » Wed May 28, 2014 2:48 pm

Hi guys

This new version of construct added more interpolation expressions:

"New interpolation system expressions: qarp (quadratic interpolation through 3 points), cubic (cubic interpolation through 4 points), and cosp (cosine interpolation)"

I was wondering it it's possible to use them for animating the Ease IN.
I tried messing with the values for the other points, to no results... Does anyone know how can I do this?

I know of the fantastic behavior for tweening EaseTween (still think it should be added as something official!), but I was trying to achieve this without any 3rd party plugins.

Thanks!
B
108
S
40
G
11
Posts: 456
Reputation: 13,787

Post » Wed May 28, 2014 6:54 pm

How did I miss these!?! I guess I was too excited about shadow casting to pay proper attention....
A big fan of JavaScript.
B
76
S
20
G
76
Posts: 2,285
Reputation: 47,554

Post » Wed May 28, 2014 7:48 pm

I've drawn a blank I'm afraid. I was hoping for these to be behaviors rather than lerp on steroids.
A big fan of JavaScript.
B
76
S
20
G
76
Posts: 2,285
Reputation: 47,554

Post » Thu May 29, 2014 11:38 am

Here's a demonstration.
https://www.dropbox.com/s/1xl1a8ueffjp0 ... .capx?dl=0
/examples23/interpolation.capx
Last edited by R0J0hound on Thu Aug 03, 2017 4:20 pm, edited 1 time in total.
B
94
S
33
G
118
Posts: 5,394
Reputation: 75,849

Post » Sun Jun 01, 2014 9:31 pm

Thanks for the examples, @R0j0hound!
A big fan of JavaScript.
B
76
S
20
G
76
Posts: 2,285
Reputation: 47,554

Post » Mon Jun 02, 2014 11:36 pm

@R0J0hound about cosp interpolation you made a .capx it doesn't seem different, it looks like normal lerp
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Tue Jun 03, 2014 6:35 am

Cosp() gives a bit of ease in/out. It's not too visible in the example since the transition is only a second long. Here are value vs time graphs of lerp and cosp.
Image

I also updated the example capx to do the transition in three seconds instead of two.
B
94
S
33
G
118
Posts: 5,394
Reputation: 75,849


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 4 guests