Sign in to follow this  
TheScruffyGuy

Image Animation loading progress

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. 

Share this post


Link to post
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).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.