Go To Previous Room


Description

This action will make your game go to the previous room as listed in the resource tree at the time the game was compiled. If this room does not exist, an error will be thrown and the game will be forced to close. Note that the room will not change until the end of the event or script where the action was called, so any code after this action will still run.


Action Syntax:

Go To Previous Room Syntax


Example:

Go To Previous Room Example
The above action block code checks for a collision with another object and if one is detected a variable in the instance is checked and the game will either go to the next room or the previous room as listed in the resource tree order.