Help with movement tweening

Get help using Construct 2

Post » Fri May 11, 2012 7:42 pm

Thanks so much everyone! I'm going to toy around with lerp and see what I come up with.

I had a feeling I'd be working with the Every Tick Event and lerp will simplify the math of the movement.

Now if only I could spontaneously develop the art skills to make things attractive >.<

Thanks again for the help!
B
20
S
2
G
3
Posts: 7
Reputation: 3,311

Post » Fri Jul 27, 2012 11:55 pm

[QUOTE=sqiddster]

To do lerp:

every tick:
set object x to lerp(self.x,destination.x,speed*dt)
set object y to lerp(self.y,destination.y,speed*dt)

Speed should be some value for the speed of the movement.[/QUOTE]

You don't have idea how many time I spent searching for this! There's a lot of lerp threads around here but this is the 1st time I could make it work.

Thanks bro!
B
9
S
3
G
3
Posts: 39
Reputation: 3,112

Previous

Return to How do I....?

Who is online

Users browsing this forum: ManuelPerez and 25 guests