Smooth moving object

Discussion and feedback on Construct 2

Post » Tue Sep 11, 2012 11:56 am

Hello. Here is a question - how to Construct 2 to smooth moving object at a certain distance?

For example there is a button. When you click on it the sprite moves smoothly on the job distance.
B
3
Posts: 1
Reputation: 277

Post » Tue Sep 11, 2012 12:18 pm

Can you confirm what is meant by "job distance?" Might lerp be what you are looking for? It eases an objects movement in and out.

lerp(x1,x2,1)
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
79
S
12
G
7
Posts: 961
Reputation: 10,717

Post » Tue Sep 11, 2012 12:21 pm

Have you seen the 'move to mouse' example in Construct 2's examples folder?
Scirra Founder
B
386
S
229
G
87
Posts: 24,207
Reputation: 191,572


Return to Construct 2 General

Who is online

Users browsing this forum: Sefardi and 1 guest