Using lerp function without the ease

Get help using Construct 2

Post » Sun Feb 16, 2014 4:36 am

Hello everyone!

How would I use the lerp function, without the ease?

I am trying to compare the sprites Y position, but with lerp it takes forever for the sprite to ease to the destination coordinate.

How could I avoid the ease?

Thank you
B
19
S
7
G
1
Posts: 349
Reputation: 3,260

Post » Sun Feb 16, 2014 5:52 am

Make another condition for the lerp event: distance(lerpTarget.x/y,lerpObject.x/y) < 1 (2,3,4, etc...)

--do lerp

else

move LerpObject to lerptarget
Don't lose your work. Backup your game with Dropbox.
B
45
S
10
G
11
Posts: 1,106
Reputation: 9,732


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests