Hello,
I have 6 images that is converted to sprite sheet and it’s name is dynamic-images.plist and dynamic-images.png I’m loading it and getting the sprite frames in the following way.
Now if I have to use different images then I have to replace the existing dynamic-images.png with the different image and create a build. dynamic-images.plist will not be changed, only images will be replaced with other images in the same position and with same dimension as previous images.
What I want is to load the dynamic-images.png from the server URL and get all the spriteFrames so that I don’t need to take a build everytime I need to use the different images.
Is it possible to replace the new image that is loaded from URL instead of existing images?
I’m using Cocos Creator 3.4.1
Thank you
I am using this for loading images, but can this be applied to SpriteAtlas and replacing the existing image?
One more question, is it possible to load the image during loading the game?
For example, if I want Background image to be fetched from remote, I used the similar code in onLoad() and add the spriteFrame to the Background node but it takes some time to load the image. So what I want is load this image during loading of the game, in application.js and add it to the Back ground node? Is it possible?
Thank you
Why don’t you just add a splash screen where you can prepare your game resources. Once resources are ready, you can go to your original scene with the downloaded background and etc.