Forums

OverviewV-Play 1 Supportbasic q about scene navigation by state changing › Reply To: basic q about scene navigation by state changing

OverviewV-Play 1 Supportbasic q about scene navigation by state changing › Reply To: basic q about scene navigation by state changing
#6332

Alex
V-Play Team

Hi Michael,

for bigger projects, I personally prefer to have the actual change of properties inside the file that contains the item that owns these properties, and communicate between the files mainly with methods and signals, just as if it was a class with private properties and public methods (that is possibly because I come from an object oriented programming background). It makes it the code more readable and reproducible in my opinion.

On the other hand, for simple tasks like switching the state of the main window, this could of course also be done by directly changing the property in any scene. The most important thing is consistency 😉

The reason we took the signal approach in the multiscene demo is that you can see all the possible scene changes at one spot (in the main), including the scene changes after clicking the back button.

Cheers, Alex

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