Forums

OverviewV-Play 1 Supportevent associated with entering a scene › Reply To: event associated with entering a scene

OverviewV-Play 1 Supportevent associated with entering a scene › Reply To: event associated with entering a scene
#6311

Michael

Thanks Chris. it’s a big help. Though (perhaps not surprisingly) I see two firings of onVisitbleChanged (once upon initial arrival/display of the scene, and another when I go back from game to level select). I wonder if there is a way to distinguish, however I guess this can be done with the aid of a setup variable. I also noticed in the menu code, there is a script call:

        State {
            name: "game"
            PropertyChanges {target: gameScene; opacity: 1}
            PropertyChanges {target: window; activeScene: gameScene; explicit: true}
            StateChangeScript {
                script: {
                    gameScene.setLevel(selectLevelScene.selectedLevel)

which was a big help. I think calling a setup function is a good place to achieve my objective.

I give a huge thanks to you & your team for providing these excellent examples. At first these examples seem like a blur, but time is needed to study these deeply to get the best benefit.

Cheers, Michael.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support