Make actor slowly stop after accelerating?
Siksten
Member Posts: 16
How is this achieved? When I accelerate with my actor then release the key he keeps sliding. He wont stop even if I had friction..? I added "interpolate self motion y to 0" in the "otherwise"-section of the Up Key acceleration rule, but then while it interpolates, if ihit the down key, it ignores the interpolation and the actor slides up until the acceleration down begins? if this sounds messed up tell me i'll try to explain better
Thanks in advance
Thanks in advance
Comments
You press a button he accelerates..
I'm not on my GS machine right now, so cant remember what options accelerate gives you.
Ok thinking outloud:
Make a rule:
if actor Y.velocity is < than you wanted max speed
accelerate...
If button is released
make accelerate = 0.
It should then slow down and stop moving (I think)..
And will only accelerate up to your chosen speed..
Note:
I've been using interpolate too much recently. So can't quite remember if this correct for 'accelerate' or 'move'.