RMMZ RPGMZ Window Base

cadu12299

Warper
Member
Joined
Mar 4, 2015
Messages
4
Reaction score
2
First Language
portugues
Primarily Uses
Hi guys. I'm new in RPG maker programming and I'm trying to create a name box.

Game_Message.prototype.add = function(text) {
this._texts.push(text);
SceneManager._scene._messageWindow.width = 800
SceneManager._scene._messageWindow.position.x = 240
console.log(SceneManager._scene._messageWindow)
// Create new Window
var rect = new Rectangle(10, 20, 180, 40)
var myWindow = new Window_Base(rect);
myWindow.position = {x: 250, y: 395}

SceneManager._scene.addChild(myWindow);
};
01.png

But I'm having some problems:
  • First - I can't close the name box when the text box closed. (I'm trying myWindow.close() but the name box close immediately )
  • Second - I can't set text in the name box.

I'm sorry if there are any grammatical errors (I'm still learning English).
Thanks in advance!
 

AcousticJamm

AAAAAAAAAAAAAAAAAAAAAAAAA
Veteran
Joined
Jun 1, 2019
Messages
205
Reaction score
30
First Language
English
Primarily Uses
RMMZ
If you're using RPG Maker MZ, which the title implies, you might want to use the box indicated by the arrow for the name box.
1598067594907.png
Unfortunately, this means your coding has gone to waste. Hope this helps!
 

cadu12299

Warper
Member
Joined
Mar 4, 2015
Messages
4
Reaction score
2
First Language
portugues
Primarily Uses
o_O I have not seen that. At least I learned a few things.
Thanks, guy!
 

JosephSeraph

White Mage
Restaff
Joined
Mar 7, 2014
Messages
1,186
Reaction score
1,444
First Language
Portuguese
I recommend trying to pursue your solution to the end to really cement what you've learned :D but yeah the namebox is super cool! looking forward to seeing ppl use it as a notetag box hahaha
 

cadu12299

Warper
Member
Joined
Mar 4, 2015
Messages
4
Reaction score
2
First Language
portugues
Primarily Uses
Hum, you're right. I'll keep trying.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,061
Members
137,575
Latest member
akekaphol101
Top