In any game engine, the x and the y control is very important fact. These are cool ideas for commands involving x and y.
X and Y command
x + 100
This will modify the position of the current object holding the command. This will add 100 to x of the current player.
object X and Y
item 5 y + 5
This will move an specific object in the X and Y. This exampl will move up the item 5 by 5 pixels. (In GML, +y is down and -y is up. TingThing should make inverted in Platform Builder to make it more logical.)
Player X and Y
player 1 x = 1
You know yet
Place object at x and y
area var local_yp = [player 1 y]
area var local_yp + 8
place enemy 1 = [player 1 x], [area var local_yp]
This creates something at the given coordinates (place (object) (id) = (x) (y)). This creates an enemy with ID 1, 8 pixels over the players actual position.
- Another command like the over it, but teleporting all objects of the same type to a coordinate.
Thanks you for reading.