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.

[RMXP] Problem draw variable

From

Member

Hello ^^
I would like to appear on the menu, the number of a variable, and I made this script:
Code:
    #===================================================

    # - CLASS Begins

    #===================================================

 

    class Window_ExSkill < Window_Base

       

      def initialize

        super(0, 0, 160,67)

        self.contents = Bitmap.new(width - 32, height - 32)

          refresh

        end

       

        def refresh

        self.contents = Bitmap.new(width - 32, height - 32)

        self.contents.font.name = "Lucida Fax"

        self.contents.font.size = 22

        self.contents.font.color = crisis_color

        self.contents.draw_text(0, 0, 33, 33, "Ex:")

        self.contents.font.name = "Georgia"

        self.contents.font.color = normal_color

        self.contents.draw_text(35, 0, 70, 33, $game_variables[32])

      end

      #

    #---------------------------------------------------------------------------------   

 

    end

    #===================================================

    # - CLASS Ends

    #===================================================
When I enter the menu, it gives me error in this string:
Code:
    self.contents.draw_text(35, 0, 70, 33, $game_variables[32])

I do not understand what is the error ... can you give me a hand?
 

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