I am printing variables in a custom window, but I can't get the commas to show up. If the variable is greater than 999, obviously, I would want the number to be comma separated.
#initialize the window
def self.initialize(x, y, w, h, opacity, back_opacity)
@window = Window_Base.new(x,y,w,h)
@window.contents = Bitmap.new(@window.width - 32, @window.height - 32)
@window.opacity = opacity
@window.back_opacity = back_opacity
#draw a single variable
@window.contents.draw_text(x, y, w, h, "" + "" + "" + $game_variables[i].to_s, 0)
What do I need to do?
Thanks in advance for your help.
Red Panda Games
Visual Novel Games