Page 1 of 1

AUTO SWITCH ROOMS WITH FADE

Posted: Wed Jun 10, 2020 6:56 am
by Ruffsta
Usually used for automatic room switching from intro screen to game screen, etc..

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

Room_2

Code: Select all

--- Fade into room
Do Just Once
Fade In
End Do Just Once
OR - simply just set Room_2 to fade in and not use the above Room_2 code