room_restart

This is used to restart the current room.

Syntax:

room_restart();


Returns: N/A


Description

With this function you can restart the current room. Note that the room will not be restarted until the end of the event where the function was called, so any code after this has been called will still run.


Example:

if lives < 1 room_restart();

The above code checks to see if the variable "lives" is less than 1 and if it is it will restart the room.


Back: Rooms
Next: room_add
© Copyright YoYo Games Ltd. 2018 All Rights Reserved