YoYo Games Wiki

xprevious

From YoYoGames Wiki

Description

(real): the previous x coordinate of an instance

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.