GXEntityPos - boxgaming/gx GitHub Wiki
Position the entity at the specified x and y pixel coordinates.
Syntax
GXEntityPos entityId%, dx%, dy%
Parameters
- Entity to position is specified by the entityId% parameter. This id is returned by the GXEntityCreate function or can be accessed by its user id by the GX function.
- The horizontal pixel position is specified by the x% parameter.
- The vertical position is specified by the y% parameter.
Examples
Example1: Position the entity at pixel coordinate (100, 75).
GXEntityPos warhog, 100, 75