Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Nov 23, 2018 Nov 23, 2018

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!

230
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Nov 23, 2018 Nov 23, 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.

Translate
LEGEND ,
Nov 23, 2018 Nov 23, 2018
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines