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.

Script-called pictures ABOVE map-called pictures?

In a script I called an image to the map that is a HUD for the battle system. But if I put an image in the map itself (like a fog, but no I can't use fogs themselves because it's already taken -- I'm using multiple pictures), it goes over the HUD which is really annoying. Can I work around this?

Also, when I go into the menu the pictures don't disappear and are still above the map. XDD

Edit: Summary; How do I make it so that pictures called in-game using an event are BELOW a picture called through a script?

Thanks!
 

khmp

Sponsor

Wherever your HUD is initialized in code probably something close to this:

Code:
@hud = HUD.new
Add a line below it and change the z value of the HUD to something outrageous like:
Code:
@hud.z = 9999
That should place it above the fog layer.

Good luck with it Twin Matrix! :thumb:
 

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