Various ease in / ease out through functions

Get help using Construct 2

Post » Sun Apr 14, 2013 2:06 am

Just rewrote the thing as in the first link o.o
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Sun Apr 14, 2013 2:48 am

I'm all smiles

This is brilliant! I love the simplicity of your code. Mine looks like a garbage dump compared to yours

Trs excellente!

B
31
S
6
G
4
Posts: 160
Reputation: 5,998

Post » Fri Apr 19, 2013 3:27 pm

@Yann would it be too much to implement these last three easings: Elastic, Back and Bounce to your awesome interpolation.capx?

I made an attempt but was unsuccessful at it.

http://www.robertpenner.com/easing/penner_easing_as1.txt
B
31
S
6
G
4
Posts: 160
Reputation: 5,998

Post » Fri Apr 19, 2013 8:06 pm

Darn they don't have the same signature as the others... It might break the cleanliness of my capx /o/

I'll try someday, ring me again in a few days if I didn't pop a new capx.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Fri Apr 19, 2013 9:06 pm

I'll look for code that comes closer to the the one you based it on.

B
31
S
6
G
4
Posts: 160
Reputation: 5,998

Post » Tue Apr 23, 2013 2:51 pm

@Yann, found this for bounce, elastic & back. May be a little clearer than the first.

bounce, back & elastic

It starts at line 194.

Also this link

same?

as it looks a bit easier to read. Nonetheless for cross referencing.

It looks a little more involved. Taking a second look, I'm not sure if it could be done since the bounce ease out has multiple 'else's. Am I correct that C2 can only use a single else per condition?

For those who are curious about easing here's another visual example of the various types.bon4ire2013-04-23 14:54:21
B
31
S
6
G
4
Posts: 160
Reputation: 5,998

Post » Tue Apr 23, 2013 3:38 pm

@bon4ire

Nope you can do the same in C2.
You can do[code]+ condition A
    -> Action 1
+ else
+ condition B
    -> Action 2
+ else
+ condition C
    -> Action 3
+ else
+ condition D
    -> Action 4[/code]
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Previous

Return to How do I....?

Who is online

Users browsing this forum: jobel, Timedoor Indones and 22 guests