room_goto_previous


描述

With this function you can make your game go to the previous one as listed in the resource tree at the time the game was compiled. 如果将要前往的下一个房间不存在,那么将会抛出错误并强制Note that the room will not change until the end of the event where the function was called, so any code after this has been called will still run if in the same event.


语法:

room_goto_previous();


Returns:

N/A(无返回值)


例如:

if room_exists(room_previous(room)) room_goto_previous();

The above code will check to see if there is another room before the current one and if so it will go to that room.


上一页: General Room Functions And Variables
下一页: room_restart
© Copyright YoYo Games Ltd. 2018 All Rights Reserved