RPG Maker Forums

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!

Latest Threads

Latest Posts

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,470
Members
137,821
Latest member
Capterson
Top