x is the horizontal position of a object, defined in pixels. Left is 0.

To return any objects X or Y position, you can use this code:

obj_wood.x to get the X position of the object wood,

obj_wood.y to get the Y position of the object wood.

Example: instance_create(obj_wood.x,obj_wood.y,obj_woodlover)

This code will summon obj_woodlover on the X and Y positions of obj_wood.

See Also Edit

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.