Hi, say i wanted to make a platformer with the PMO but for one reason or another i needed to move the player myself rather than using "user is holding right input key" and that sort of thing how would i go about doing it? in particular how would i add my own deceleration?
so far i've just been setting acceleration and deceleration to 0 then using:

Reapeat while joystick is moved right
> set X velocity to 170

Reapeat while joystick is moved Left
> set X velocity to -170

Negate - Reapeat while joystick is moved Left
Negate - Reapeat while joystick is moved right
> set X velocity to 0

But i've no idea how to add deceleration, or whether this would even be the best approach for this sort of thing.

any help would be greatly appreciated
thanks