kaboom icon indicating copy to clipboard operation
kaboom copied to clipboard

Sometimes loadSprite and loadSound are not able to load the data

Open jamtechdev opened this issue 1 year ago • 3 comments

I found that sometimes these functions loadSprite and loadSound are not able to load the content and show an Error message like xyz.png not found but after doing a hard refresh it starts working.

jamtechdev avatar Apr 04 '23 13:04 jamtechdev

Hi! So it only happens sometimes and cannot be reliably reproduced? Does soft refresh fix it or only hard refresh does?

slmjkdbtl avatar Apr 06 '23 05:04 slmjkdbtl

Hello, it happen sometimes: cases : 1- When I add a new object, make significant changes in code, or host the code on the server. 2- It fixed after hard refresh one or multiple times.

jamtechdev avatar Apr 07 '23 05:04 jamtechdev

Any chance the sprite is used before loadSprite() is called? If so that error will come up

slmjkdbtl avatar Apr 10 '23 16:04 slmjkdbtl