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]Scroll command_window?

Hi, it's me again!  :wink:
I was just wondering, if you would like to have many options in the command_window in Scene_Menu, how can you make it so you can scroll down between the options, insted of the command_windows height increasing?
Thanks
/Gando
 
Right after the line...

@command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6, s7, s8, s9, s10])
@command_window.height = n * 32 + 32

where n = # of commands you want showing

Window_Command calculates the height as:  commands.size * 32 + 32
So you just force it back to whatever you want.

Be Well
 

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