Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Text in window below shows above other window

Hi,

I just ran into weird bug of my script. I'm making Item Mixer system and adding confirmation window into it.

And somehow the text in window below shows on confirmation window. Here is screenshot:
http://img210.imageshack.us/img210/5686 ... bugtq3.jpg[/img]

Here is the script. The comment part is in Thai.
You can test this bug by adding any window (e.g. Window_Base) into the scene.

Code:
#===============================================================
# â—
 
I don't know what's the name of your confirmation window, but basically add this line:
Code:
@confirm_window.z = 100
Just change '@confirm_window' into whatever yours is named. If that didn't change it, increase 100 and check again.
 
It always does, unless you somehow set the z on the mixlist to anything higher.
As you see, the Z value is the depth location of the windows. If Window A has 5, and Window B has 10, Window B appears on top of Window A. Try putting like 9999 to see if that has any different effect.
 

Zeriab

Sponsor

I just tried adding a window after they other windows was created and got the effect you displayed.
I altered the z-value of the window which solved the problem.
Code:
    @window_test = Window_Base.new(80,100,300,100)
    @window_test.z = 400

*hugs*
- Zeriab
 
Thanks zeriab, joshua, and fireraven for your help!
I will have to try that after I get home. >_>"

By the way, Does anyone has an idea why the this happen?
Since if Z-coordinate is higher, both text and window should be above the other one. But in this case, only text that show above the other one.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top