GM: room restart

From GMpedia.org Wiki

Jump to: navigation, search

room_restart() is a built-in function in Game Maker, which is used to restart the current room, if a certain condition is met. There is a wide variety of uses for this function, such as if the charcter dies the room or level may be restarted. For example:


if lives<=0
 {
 room_restart();
 }
Personal tools