xprevious
From YoYoGames Wiki
Description
(real): the previous x coordinate of an instance
- Read-write
- Scope: Local
Explanation
The local variable xprevious indicates the previous x position of an instance.
If an instance is not moving, xprevious is the same as x.

