- Joined
- Aug 1, 2016
- Messages
- 873
- Reaction score
- 562
- First Language
- English
- Primarily Uses
- RMMV
I'm trying to load a sprite sheet using ImageManager.loadCharacter so I can check the image's dimensions, but the first time I try to load the image, the resulting bitmap object has a .height and .width of 0. This happens for all the other resources the game loads, the first time- if it tries to load the same image again (Probably because it's cached), suddenly the width and height are right, and clearly they work when the game needs to use them.
When does it update the dimensions, and does anyone know if there's steps to either a) wait until that's complete, or b) force it to find the actual dimensions?
Thanks in advance!
When does it update the dimensions, and does anyone know if there's steps to either a) wait until that's complete, or b) force it to find the actual dimensions?
Thanks in advance!
