AUTO SWITCH ROOMS WITH FADE
Posted: Wed Jun 10, 2020 6:56 am
Usually used for automatic room switching from intro screen to game screen, etc..
Room_1
Room_2
OR - simply just set Room_2 to fade in and not use the above Room_2 code
Room_1
Code: Select all
--- Timer to automatically fade out and switch to the next room
Declare Room Global a;Whole Number;0
Set Variable a;a + 1
If a == 120
Fade Out
Switch Room Room_2
End If
Code: Select all
--- Fade into room
Do Just Once
Fade In
End Do Just Once