-
-
Notifications
You must be signed in to change notification settings - Fork 18
move_wrap
drewmccluskey edited this page Feb 10, 2019
·
4 revisions
Wraps the screen both horizontally and or vertically
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
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.
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