Quote from: Khris on Wed 21/04/2021 21:43:12
In room_Load():Code: ags SetBackgroundFrame(0); SetTimer(1, 5 * GetGameSpeed()); // 5 seconds
In room_RepExec():Code: ags if (IsTimerExpired(1)) { int cf = GetBackgroundFrame(); if (cf < 4) { SetBackgroundFrame(cf + 1); SetTimer(1, 5 * GetGameSpeed()); } else player.ChangeRoom(2); }
Hello Khris, thanks for the assistance!
It kind of works, but at the end of the animation I get the error "SetBackgroundFrame: invalid frame number specified" on line "SetBackgroundFrame(cf + 1);" . What could this mean?