phy_position_y


Description

This variable can be used to get (or to set) the y position of the instance within the game room physics world. Please note that the physics world may present errors when instances are moved by directly setting this variable as it will interrupt the continuous simulation


Syntax:

phy_position_y;


Returns:

Real (single precision floating point value, or undefined if the instance is not physics enabled)


Example:

xx = phy_position_x;
yy = phy_position_y;

The above code stores the instance x and y position in two variables.