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.

self-resizing windows?

can i make it so the window height is some function of the number of y entries?

so, if i had some text lines long, it would be twice as long as if i had text one-line long.

Or...

a 4 choice question would be about 4 or 5 times as big as normal.
 
Yes, you can keep in a variable the number of lines you draw the change the height multiplying it by 32 (Or any other size of line). Here's a example:
Code:
@lines = 0
draw_something
@line += 1
@window.height = @line * 32

If you need more help just ask.
SEE YA!!!!!
 

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