Jump to content

Image Animation loading progress


TheScruffyGuy
 Share

Recommended Posts

I would to use a a way to show loading progress for my loading scene but instead of a bar I have a gear sprite sheet that I would like to spin until loading is complete. Is there reference to this anywhere I have been combing through the P3 examples and can't figure out how to link the two together. 

Link to comment
Share on other sites

Sounds like you want to play an animation during a Loading scene, and then transition to a different scene once all the loading has completed. 

You can load a spritesheet for the gear before a Scene starts using the scene's config object (see https://labs.phaser.io/view.html?src=src\scenes\scene files payload.js) and use that in a Loading scene. Then once everything has loaded (i.e. the `create` function of your scene gets called) you can switch to a new scene (like this https://labs.phaser.io/edit.html?src=src\scenes\change scene from create.js).

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...