You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 30, 2023. It is now read-only.
The name of the object. Examples: obj_mysteryman, obj_gasterblaster.
XCoord
Type: Real Number
The X position (horizontal) of the created object.
YCoord
Type: Real Number
The Y position (vertical) of the created object.
Return Value
Type: RValue
The instance ID of the created object.
You can use this ID with GameMaker functions like instance_destroy.
Example
localid=CreateObject("obj_savepoint", 340, 230); -- Create an obj_savepoint at { 340, 230 }, and save the instance ID in the "id" variableprint(id.realval); -- Print the real value of the "id" RValue. This is the created instance ID.