Skip to content

move_wrap

drewmccluskey edited this page Feb 10, 2019 · 4 revisions

move_wrap

Wraps the screen both horizontally and or vertically

Syntax:

move_wrap(hor, ver, margin)
Argument Description
bool hor Wrap screen horizontally
bool ver Wrap screen vertically
int margin relative pixel margin of the border

Returns: void

Description:

This function creates screen wrapping which allows the player to go off one side of the room and appear coming on the other side of the room, both horizontally or vertically. It also features a specified margin which allows the player to have to go further before it will swap them to the other side of the room.

Example:

move_wrap(true, false, 0)

The above code will wrap the screen horizontally but not vertically, with an immediate edge margin. This will allow the player to go off the left or right side of the screen and appear on the opposite side, but will not allow it on the top and bottom.

Back to Movement

Clone this wiki locally