RPG Maker Forums

Hi, everybody!

I'm creating the my project's menu, but came across with a problem. I did this code:


this.menuHeaderImg = new Sprite();
this.menuHeaderImg.bitmap = ImageManager.loadPicture("System - MenuHeader");
this.menuHeaderImg.anchor.x = 0.5;
this.addChild(this.menuHeaderImg);
this.menuHeaderImg.bitmap.drawText("Menu", 0, 10, 136, 20, 'center');





Worked perfectly, like the image shows. But, when I tried do the same code to show other image...


this.sceneHeaderImg = new Sprite();
this.sceneHeaderImg.bitmap = ImageManager.loadPicture("System - MenuHeader");
this.sceneHeaderImg.anchor.x = 0.5;
this.addChild(this.sceneHeaderImg);
this.sceneHeaderImg.bitmap.drawText("Status", 0, 10, 136, 20, 'center');




The new text is drawed over previous, in both images. Someone knows why? :/

Latest Threads

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,038
Messages
1,018,466
Members
137,821
Latest member
Capterson
Top