room_restart


Description

This function will restart the current room, as if it had just been entered.


Syntax:

room_restart();


Returns:

N/A


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: General Room Functions And Variables
Next: room_add
© Copyright YoYo Games Ltd. 2018 All Rights Reserved