Hello everyone,
I'm currently writing a plugin for a friend of mine, but I've run into problems.
I have a pretty straightforward scene (which inherits from Scene_MenuBase) with a few windows in it.
Now I wanted to show a message (I'm trying to tell the player why he can't choose the option he just tried to choose, in this case, but I'm sure I will need this function for other stuff in the future too.) inside of that scene.
I tried the following code:
$gameMessage.clear();$gameMessage.setBackground(1);$gameMessage.setPositionType(1);$gameMessage.add("Message to the player here...");The code gets executed almost correctly. The problem is, that the message is only shown after I pop my scene!
I figured that the Scene_Map does something that my scene does not, hence it showing the message-box only when I return to that scene, so I looked and realised that Scene_Map and Scene_Battle both have Window_Message windows.
So I go and create a function that creates this for my scene exactly like the ones Scene_Map and Scene_Battle have and call it in the create function of my scene... but STILL my message-box only opens after I pop my own scene and return to Scene_Map.
I can't find any clue why it's not showing on my scene...
Anyone knows what I am doing wrong?
I didn't post any of my code, because I know all the functions I wrote are beeing executed (tested it by throwing local variables of these functions in "console.log()", and they always were as expected. I even compared the Window_Message from my scene with the one from Scene_Map and I couldn't find any difference except the variables "_animationCount" and "stage")
Kinda going crazy here, because I can't see why it is working on Scene_Map and Scene_Battle but not in my custom scene...
I'm thankful for anyone trying to help.
I'm currently writing a plugin for a friend of mine, but I've run into problems.
I have a pretty straightforward scene (which inherits from Scene_MenuBase) with a few windows in it.
Now I wanted to show a message (I'm trying to tell the player why he can't choose the option he just tried to choose, in this case, but I'm sure I will need this function for other stuff in the future too.) inside of that scene.
I tried the following code:
$gameMessage.clear();$gameMessage.setBackground(1);$gameMessage.setPositionType(1);$gameMessage.add("Message to the player here...");The code gets executed almost correctly. The problem is, that the message is only shown after I pop my scene!
I figured that the Scene_Map does something that my scene does not, hence it showing the message-box only when I return to that scene, so I looked and realised that Scene_Map and Scene_Battle both have Window_Message windows.
So I go and create a function that creates this for my scene exactly like the ones Scene_Map and Scene_Battle have and call it in the create function of my scene... but STILL my message-box only opens after I pop my own scene and return to Scene_Map.
I can't find any clue why it's not showing on my scene...
Anyone knows what I am doing wrong?
I didn't post any of my code, because I know all the functions I wrote are beeing executed (tested it by throwing local variables of these functions in "console.log()", and they always were as expected. I even compared the Window_Message from my scene with the one from Scene_Map and I couldn't find any difference except the variables "_animationCount" and "stage")
Kinda going crazy here, because I can't see why it is working on Scene_Map and Scene_Battle but not in my custom scene...
I'm thankful for anyone trying to help.