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]How to make a info box?

Status
Not open for further replies.

izze

Member

Hi, I'm wondering how to make so the Window_Steps window don't show steps but it shows game info, like "Go to the big house" and you can change the text with a event.
 
You could always go into Window_Steps in the script editor.

Find the line that draws the text and replace it with drawing variables I guess.

You can get 2 lines of text in by default.

Code:
    self.contents.clear
    self.contents.draw_text(0, 0, contents.width, 32, $game_variables[variable_id])
    self.contents.draw_text(0, 32, contents.width, 32, $game_variables[variable_id])

Replace both of the variable_id with your variable id (minus 0's in front).

Then just use a event command script with soemthing like

Code:
$game_variables[variable_id] = 'This is line 1 of your text'
$game_variables[variable_id] = 'This is line 2 of your text'
 
Will be easier of this way:
Code:
    self.contents.clear
    self.contents.draw_text(0, 0, contents.width, 32, 'Variable 2:')
    self.contents.draw_text(0, 0, contents.width, 32, $game_variables[2].to_s, 2)
    self.contents.draw_text(0, 32, contents.width, 32, 'Variable 3:')
    self.contents.draw_text(0, 32, contents.width, 32, $game_variables[3].to_s, 2)
 
Status
Not open for further replies.

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