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.

[RESOLVED]Display text on on top of picture?

Hi..  i will try to explain this so you will understand.  :shock:
I was just playing around in the script editor and i was wondering how you can make the text a higher priority?
I thought i could try to remove the message window and use a picture instead but when i use a picture the text is behind the picture so you can't see it  :shock:

I This is what i tried:

Code:
    bitmap = RPG::Cache.picture('picture')
    self.contents.blt(0, 0, bitmap, Rect.new(0,0,200,200))

but as i said, you can't see the text cuz the picture is blocking it, so i wonder is there a way to change it so that the text is on top instead? :smile:
 
verballydecapitating":1rtwkdok said:
Make sure you blit the background before the text and it will display underneath the text. Blt transfers one bitmap onto another, so just do it in the right order.

aaah, that was the problem, thanks for the help! ^^
 

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