• Content Count

  • Joined

  • Last visited

About TomCruise

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hey there! I have two modules - "controller.js" and "loader.js". In the controller module, I call two methods - `Loader.loadResources()` and right after that, `Sprites.createSprites()` (which uses the `loader.resources` to create sprites from textures). As you can probably tell, the latter function throws an error since the loader hasn't completed loading all the resources yet. I don't want to pass `Sprites.createSprites()` as a callback to the `loader.load()` method since I want the loader module to do only one thing - load resources. Is there a way to wait until the loader completes loading all resources? Thanks!