Category: Objects
/ Position
Since engine version: 5.1 OC
SetPosition
Description
Moves the object to the specified position. This will set the exact pixel position and any internal sub-pixel offsets will be reset.
Syntax
void SetPosition(int x, int y, bool check_bounds);
Parameters
- x:
- New X position of the object.
- y:
- New Y position of the object.
- check_bounds:
- [opt] Only applies to objects using the BorderBound flag. Ensures that the position is always within the limits specified by the object.


