- Joined
- Jun 30, 2017
- Messages
- 42
- Reaction score
- 35
- First Language
- spanish
- Primarily Uses
- RMMV
Hi, i am working on a plugin for my game that automatically loads parallax images on map enter.
Because in big maps that is slow(1-3 seconds with strange screen effects) i want to show a 'loading image' over screen, then load all parallax images, and when everything is loaded remove the loading image from screen.
I'am using gameScreen.showPicture() to load all that images, but that runs in async, and the function returns before the image is loaded and visible on screen.
My question is: After calling gameScreen.showPicture() many times, how to check/wait until all images are loaded, before proceeding to next step?
Load "loading" image.
Wait for image load.
Load parallax image 1
Load parallax image 2
Load parallax image 3
Load parallax image 4
...
Load parallax image 32
Wait for all images
Hide "loading" image
Any help will be appreciated.
Because in big maps that is slow(1-3 seconds with strange screen effects) i want to show a 'loading image' over screen, then load all parallax images, and when everything is loaded remove the loading image from screen.
I'am using gameScreen.showPicture() to load all that images, but that runs in async, and the function returns before the image is loaded and visible on screen.
My question is: After calling gameScreen.showPicture() many times, how to check/wait until all images are loaded, before proceeding to next step?
Load "loading" image.
Wait for image load.
Load parallax image 1
Load parallax image 2
Load parallax image 3
Load parallax image 4
...
Load parallax image 32
Wait for all images
Hide "loading" image
Any help will be appreciated.

