Hi, I have a sprite with platform behavior.

Maximum speed 60

Deceleration 240

I need to figure in which X coordinate will brake the sprite completely when I do not press any key.

I mean, I need to calculate in advance the X that the sprite will have when it stops completely.

What calculation do I have to do with the maximum speed and braking speed?

The acceleration is instantaneous (10000) so I do not take it into account. But if you know the calculation also with the acceleration, then I could alter this and use your calculation to help me.