(Solved) How Do I Change Game play Scenes?

hello. I’m looking for help.
I want to put some kind of FeverTime mode in the middle of play.
(Change background, change objects, change points earned, no obstacles appear)
When the game starts, an object1 is randomly generated.
After 10 seconds of game time, object1 is interrupted with a scene transition and object2 is created (FeverTime mode).
After another 10 seconds, Object 2 is interrupted and the original Object 1 is regenerated.

Game Timer : Playtime
Object1 : Scene Variable = Object1
Object2 : Scene Variable = Object2
The objects are all dropped using the PlatfomerObject behavior.

But nothing is currently being created, can you tell me how?

The problem is happening is because you made the timer event happen at the beginning of the scene like:

condition: beg of the scene:
variable state = “playing”
sub event: the timer “playtime” > 10 secs

So, basically you need to remove it as a sub event of beginning of the scene and for the timer to take place, first the engine checks if it is beg of the scene (the main event) then check if timer is 10 secs and the beginning of the scene, if these are true the engine will implement it. If its beginning of the scene and timer is not 10 secs the engine would ignore it.

all these would only happen if the sub events condition + the main events condition and actions are completed.

I made this modification.
But,
Object1 drops well up to 10 seconds. After 10 seconds, Object1 stops falling as desired, but Object2 is not created. After another 10 seconds, Object1 falls as desired again. Object2 is not being created.
(The fever time switching was done with the scene variable number).

The variable state will be defaulting to a value or 0. Which means that last event is pausing the timer “object2Creation” before the events that set state to 1 are actioned. When you start or reset a timer, it won’t automatically unpause it - that has to be done in a separate action.

So, in the event where “object2Creation” timer is started/reset, you’ll also need to add an action to unpause the timer “object2Creation”.

2 Likes