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
18
S
6
Posts: 348
Reputation: 2,633

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
44
S
10
G
10
Posts: 1,106
Reputation: 9,202


Return to How do I....?

Who is online

Users browsing this forum: matriax and 19 guests