Bitmap Number
#2
Bump!
Wheee.

Updated the script with a major addition that makes working out the complete sprite's length much more sensible. Or to put it another way, I just learnt about String.length. |V In addition, numbers with leading zeros like playtime hour/min/sec should be able to be used with this script.
Code:
hour = sprintf("%02d", @total_sec / 60 / 60)
min = sprintf("%02d", @total_sec / 60 % 60)
sec = sprintf("%02d", @total_sec % 60)
draw_bitmap_number(sec, self.width - 44, y + LINE_HEIGHT, 0, 2)
draw_bitmap_number(min, self.width - 84, y + LINE_HEIGHT, 0, 2)
draw_bitmap_number(hour, self.width - 124, y + LINE_HEIGHT, 0, 2)
Reply }


Messages In This Thread
Bitmap Number - by Taylor - 04-13-2011, 12:44 PM
RE: Bitmap Number - by Taylor - 06-09-2012, 07:57 AM
RE: Bitmap Number - by Taylor - 01-31-2014, 10:27 PM
RE: Bitmap Number - by JayRay - 02-01-2014, 03:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   MapEffects for Whiteflute's Bitmap EX Narzew 3 8,973 05-05-2012, 09:31 PM
Last Post: Narzew
   Additional Bitmap Methods untra 4 10,228 06-04-2010, 03:55 AM
Last Post: untra



Users browsing this thread: 1 Guest(s)