Jump to content

How to delay within a preload

Recommended Posts

Within a scene preload function, if I have the following logic setup

preload() {


    this.load.on('complete', function () {




...Is there a way we can set a delay (3 seconds), before progress is actually destroyed?

Setting `this.time.addEvent()` does not appear to work within a preload() instance.


Link to post
Share on other sites

My goal within this preloading sequence is to place a Phaser graphic onto stage that increases in height as the progress gets to 100%, and at the same time, set a mask so that a background image is revealed as the the graphic height increases.  I feel i'm halfway there. 

I'll play with that timer event to see if that helps to keep my preload up long enough before I transition to the rest of the game.

Many thanks










Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...