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.

The Battle Command Window.

I decided to move the regular actor command window in battle down over the characters' stats, but than this happened:

http://www.carrotworks.net/Problem.png[/img]

I changed the opacity of it to 255, also. So is there anyway to make the command window always show above everything? Or make it so the actors stats disappear when selecting an action (and reappear after selecting an action)?
 
Wherever you added the x and y coordinates to actually move that window down.
So for instance:
Code:
@command_window.x = 0
@command_window.y = 480 - @command_window.height
@command_window.z += 2
Disregard the x and y, those are just to show you how. As I believe the x is based on which actor's turn it is.
 
Carrot Works":p8b2fg46 said:
Thanks! It worked! (although I had to change it to 4 instead of 2, but that's okay)
Yes, that would be the cause of the fact that the party window is set to that value. For instance, if you have two windows, one has z 3, and second has z 10, then the first one needs to go past 10 to be on the top. Easy, huh?

Glad it worked out for ya.
 
Just fyi, i remember from the help that the text within a window takes the window's z plus two. So if you have two windows, A at z=10, and B at z=11, the text from A will still be visible over window B. You need a z-gap that is larger than two. This is why i said "add 2 units", i supposed the windows were initially at the same z, but apparently they are not.
 

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