Slowdown.

Get help using Construct 2

Post » Thu May 31, 2012 12:39 pm

Maybe there is a right way to smoothly slow the object?

.capx
http://www.sendspace.com/file/6utq4k
B
5
Posts: 25
Reputation: 425

Post » Thu May 31, 2012 2:13 pm

hmmm
[code]Global number distance= 0
Global number maxDist = 100
Global number minDist = 5
Every Ticks
-> set distance to distance(Sprite.X,Sprite.Y,Target.X,Target.Y)
-> Set Bullet speed to lerp(0,100,Clamp((distance-minDist)/(maxDist-minDist),0,1))[/code]Yann2012-05-31 15:09:33
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Thu May 31, 2012 3:36 pm

Thanks.
B
5
Posts: 25
Reputation: 425


Return to How do I....?

Who is online

Users browsing this forum: adi pratama, Messy1001 and 24 guests