YoYo Games Wiki

yprevious

From YoYoGames Wiki

Description

(real): the previous y coordinate of an instance

Explanation

The local variable yprevious indicates the previous y position of an instance.

If an instance is not moving, yprevious is the same as y.