Skip to main content
francescod61968315
Participant
November 23, 2018
Answered

Html5 canvas game - loading different assets at different times instead of all at once

  • November 23, 2018
  • 1 reply
  • 265 views

Hello everyone, I'll try to be brief.

I'm making an html5 game with Animate CC, and I must say I'm really glad with the final result. However, the preloader takes a lot of time - 'cause the game is somewhat big.

I was wondering if there's a way to avoid loading all assets (jpg files and sounds) at the beggining, and instead load each "scene" (or level) whenever you need it.

I was thinking of doing so by publishing multiple html-index projects, but how can I make them communicate? How can I load one of them at will?

I'll be very grateful if anyone can point me in the right direction,

thanks!

This topic has been closed for replies.
Correct answer ClayUUID

There is no way built in to Animate to do this. You're looking at manually hacking up the generated media manifest and/or writing your own asset loader.

1 reply

ClayUUIDCorrect answer
Legend
November 24, 2018

There is no way built in to Animate to do this. You're looking at manually hacking up the generated media manifest and/or writing your own asset loader.