Forums

OverviewV-Play 1 SupportFirst sound after loading gets “eaten” › Re: First sound after loading gets “eaten”

OverviewV-Play 1 SupportFirst sound after loading gets “eaten” › Re: First sound after loading gets “eaten”
#4043

Christian
V-Play Team

It depends where you put your BackgroundMusic item – it will start playing in onCompleted by default when autoPlay is set to true. You could also set autoPlay to false and then trigger the play with the Timer approach you already mentioned.

If you put the sound loading to a Timer where the Scene is drawn (trigger the onCompleted for that), you should be fine on all system. In general, it is a good idea to keep the inital loading time low. You can accomplish that with the Loader item, where the scenes are not loaded at app startup, but only when you set the source property. It is done this way in the updated versions of Squaby and Chicken Outbreak which will be available this week as part of the major update.

Cheers,
Chris

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