Game Maker
Register
Advertisement
Jump to random position

This action's popup window

Using Jump to a random position you can move the instance to a random position in the room. Only positions are chosen where the instance does not intersect any solid instance. You can specify the snapping used. If you specify positive values, the coordinates chosen with be integer multiples of the indicated values. This could for example be used to keep the instance aligned with the cells in your game (if any). You can specify a separate horizontal snapping and vertical snapping.

See Also[]

Advertisement