Is it possible to use audio-assets without preloading them in the preload-function?

As I mentioned in an early request, I try to make a dictation-program for my pupils. The work is almost done, but now I am confronted with a big problem:
The program selects every time a random word from a list of 3630 words. Normally, you preload the assets in the preload function as in this example. But this is difficult with 3630 words. I have 36,3 MB with mp3-files and 53,1 MB ogg-files. I know it’s possible to pack all the word in one audiofile, but that’s not a solution, because it takes too long to load this file.
I wonder if it is possible to load only the words the program picked randomly during the game and not at the start. It is not necessary to load all the 3630 words, only the words the program chooses during the game.

They have to be loaded somehow, but it can be done in the preload() method of a second scene, or by running the loader manually.

See Phaser 3 Examples for an example.

1 Like

Thank you very much, it works now with your tips:

1 Like