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.

Number text on screen from varible.

Hey I'm trying to create an arcade mode in my game. I would just like to know if someone could help me make a "points" system. All I need is on the upper right hand side of the screen, there is number text that is the numbers from a varible. For example, if varible 1= 60, then it shows a "60" on screen in the upper right hand side of the screen. Also if the varible raises i need it to always be correct on the varible number,

Maker: RMXP
 
im not good at scripting, but if u still use the menu, here is how you can replace the steps thing in the menu with point. replace your whole window_steps with:
#==============================================================================
# ** Window_Steps
#------------------------------------------------------------------------------
#  This window displays step count on the menu screen.
#==============================================================================

class Window_Steps < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0, 160, 96)
    self.contents = Bitmap.new(width - 32, height - 32)
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
 
  def refresh
    self.contents.clear
    self.contents.font.color = system_color
    self.contents.draw_text(4, 0, 120, 32, "Points")
    self.contents.font.color = normal_color
    @number = $game_variables[1]
    self.contents.draw_text(4, 32, 120, 32, @number.to_s, 2)
  end
end
 

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