Jump to content

Wait for slow performing function


Recommended Posts

I have a couple of large PNGs which I'm loading and then changing the colour of using shiftHSL. It works fine, but because the PNGs are so large, it's pretty slow.

I've pulled it out of the main game, so the colouring happens after the game is loaded rather than trying to do it when the game builds, but, if you click play too quickly, it hasn't finished.

Is there a way I can set some sort of callback so I can prevent the player moving on before it's complete?


Link to comment
Share on other sites


  • Recently Browsing   0 members

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