Whats the proper method for loading and displaying a bitmap image?

Orichalcum+

Veteran
Veteran
Joined
Apr 17, 2015
Messages
72
Reaction score
52
First Language
English
Primarily Uses
Also, I cant seem to figure out how to display an image without using $gameScreen.showPicture. This isnt really a big deal, I dont think I would ever use more than 99 images. I just wanna know how for the sake of knowing.


Im under standing is that  first I have to create a new Bitmap. " imagex = new Sprite(Bitmap.load("img/system/GameOver.png"))"


Then I can use "ImageManager.isReady(Sprite)" to check if its been loaded. All the material I found find says that the next step is to use "scene.addChild(Sprite)". So I put in  "Scene_Map.addChild(Sprite)" and it was no dice.
 
Last edited by a moderator:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
Please change your title into something meaningful.  Members usually like to have a rough idea of what the issue is before they decide whether to look at a thread or not.  Help them to help you.  Also with a title like your current one, if anyone has the same query in the future, they have no way of knowing that this has been discussed, so cannot benefit from any advice given here.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
I'm pretty sure it should be isReady(imagex) and .addChild(imagex) since your Sprite is called imagex
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

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