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.

NO TEXT IN MENUS

khmp

Sponsor

I recently learned from Linkin_T that you should only use begin blocks if you have a rescue and/or ensure statement. I guess it doesn't matter because the problem is solved. Just a FYI for a fellow scripter.

It's perfectly fine to just have:
Code:
class Font
  self.default_name = 'Arial'
  self.default_size = 22
end
 
he could also use Font.default_name = 'Times New Roman' and Font.default_size = '20' in a specific scene script.
Edit:
by the way, Font.default_color = Color.new(160,160,0,255) is the way you can setup a custom color.
 

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