OXS 2.0 TV Sound Bar
Compact sound bar pick for boosting TV, movie, and console audio.
View on Amazon
Bmmplay may earn a commission from qualifying purchases made through these links.
No products in the cart.
Simple enough for a child, powerful enough for a developer
BMM_Archive · July 16, 2026
Map Number Displayer v1.0 by astrobunny Introduction This simple script places a number on your map that you can manipulate by changing a switch and a variable!
OXS 2.0 TV Sound Bar
Compact sound bar pick for boosting TV, movie, and console audio.
View on Amazon
Bmmplay may earn a commission from qualifying purchases made through these links.
#########################################################
### FIRST PART OF THE CODE
#########################################################
@nums = Sprite.new(@viewport3)
@nums.z = 9999
@nums.x = 30
@nums.y = 30
@nums_bitmap = RPG::Cache.picture('nums.png')
@nums_number_width = @nums_bitmap.width / 10
@nums_max_digits = 6
@nums_display = Bitmap.new(@nums_number_width * @nums_max_digits, @nums_bitmap.height)
@nums.bitmap = @nums_display
@nums_variable ||= 1
@nums_temp_variable ||= 2
@nums_visible_switch ||= 1
@nums_visible = false
#########################################################
### SECOND PART OF THE CODE
#########################################################
def update_number!
return if !$game_switches[@nums_visible_switch] && !@nums_visible
@nums_display.fill_rect(0, 0, @nums_display.width, @nums_display.height, Color.new(0, 0, 0, 0))
@nums_visible = false
return if !$game_switches[@nums_visible_switch]
if $game_variables[@nums_variable].to_i < 0
$game_variables[@nums_variable] = 0
end
displayed = $game_variables[@nums_temp_variable].to_i
actual = $game_variables[@nums_variable].to_i
if actual > displayed
$game_variables[@nums_temp_variable] += 1
elsif actual < displayed
$game_variables[@nums_temp_variable] -= 1
else
return unless $game_switches[@nums_visible_switch]
end
number = displayed.to_s
number.split('').each_with_index do |chr, idx|
digit = chr.to_i
src_rect = Rect.new(@nums_number_width * digit, 0, @nums_number_width, @nums_display.height)
@nums_display.blt(idx * @nums_number_width, 0, @nums_bitmap, src_rect)
end
@nums_visible = true
end
#########################################################
### THIRD PART OF THE CODE
#########################################################
update_number!
#########################################################
### THAT'S ALL FOLKS!
#########################################################
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadQ: Who should i credit? A: Me, astrobunny. Q: Can I use my own number image? A: Yes! You have to make it so all the numbers occupy the same sized rectangle in the image. Basically, divide your image into 10 equally spaced parts, and place each of your numbers in each part. You should also make your background transparent in your PNG. You must also name it nums.png
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
No replies yet.
Loading summary...
Bmmplay creator tools
Log in or create an account to use this creator tool.
Join the conversation
Your reaction is ready. Log in and you will return to this page to add it.
Are you sure you want to close this music player?
Community safety