With this action you can let an instance wrap around a room, that is, when it leaves on one side of the room it reappears at the other side. This action is normally used in the Other - Outside Room Event or the Step Event and you can indicate whether to wrap only horizontally, only vertically, or in both directions, as well as set a margin. The margin value is the number of pixels outside of the room area that the instance must have moved before it will be wrapped around to the other side. Note that the instance must have a speed for wrapping to work, because the direction of wrapping is based on the direction of the motion.
Argument Description Margin The margin around the edge of the room to check Horizontal Enable horizontal wrapping (on by default) Vertical Enable vertical wrapping (on by default)
The above action block code will wrap the instance around the horizontal axis when it is more than 32px outside the room area.