How do I know "at the beginning of the game"?

Not ā€œat the beginning of the Sceneā€
I want to know ā€œat the beginning of the Gameā€

I want to choose the start scene after ā€œgame.startGameLoop()ā€.

Is this the only way?
Moveup the first Scene…
36

35


or, choose the scene handle on external event…
21

46


(but not working create objects from external layout instances…)

The first scene in your project manager, open it and set the action ā€œat the beginning of the Gameā€ and add your actions / sub events.

set the action ā€œat the beginning of the Gameā€

where is this??
Is that ā€œat the beginning of the Sceneā€?

Oh sorry missunderstood. I mean ā€œat the beginning of the Sceneā€ yes and not in action but in conditions, sorry.

Thanks for your response.
So this is the only way to do it, right?

Yes or, experiment with JSevent.
But the easy way is this one for me, scene and condition.

Thanks for your help!

ā€œat the beginning of the Gameā€
I found out that I couldn’t do that.

I’ll do it this way:

Overview

  • Use First scene event to trigger the start of the game
  • Make a global variable a placeholder
  • Get the currentStageNum from the storage and put it into the global variable.
  • Scene change from global variable.
  • Put handler of GameTop external layout on each stage scene

At the First Scene Event (not external event)

// live is my functions and teamName
var live = runtimeScene.live;
if (live) {
    live.updateVariableCurrentStageNum(runtimeScene).then(() => {
        live.replaceCurrentStage(runtimeScene);
    });
}

At the each Stage Scene (It’s messy..)

and after the stage is cleared:

live.replaceNextStage(runtimeScene);

implement replaceNextStage():

  • Increment ++currentStageNum
  • Choose the next stage from structured global variable ā€œStageSequenceā€
  • Set next num into storage(other promise methods
  • Replace the nextScene

We solved it!