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.

Implementing window message in custom new scene

Im trying this in my merchants scene(its a improved copy of the shop, but with some extra things).

Now what im doing is this:

I instance the window in the main method of the scene:
@message_window = Window_Message.new
@message_window.visible = false

And in the update method:
@message_window.update

Then im doing this simple test. When i try to quit the scene, this code is executed:
Code:
         #If other text has been set to message_text

          if $game_temp.message_text != nil

            # End

            return false

          end

          # Set message end waiting flag and callback

          @message_waiting = true

          $game_temp.message_proc = Proc.new { @message_waiting = false }

          # Set message text on first line

          $game_temp.message_text = " Wep \n Wep2 \n Wep3 \n "

          @message_window.visible = true

          @message_window.refresh

 

I do that obvisuly to test it. But im having a problem: it shows well the window, but it disappears at the moment... i dont know very well the window message in general.

Any hints for this?
Any hints about implementing window message in other scene?
 

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