Omnimaga

Calculator Community => TI Calculators => TI-BASIC => Topic started by: Shazane Koronova on January 26, 2007, 05:13:00 pm

Title: printing a white line
Post by: Shazane Koronova on January 26, 2007, 05:13:00 pm
I remember an argument between superior 86 and inferior 83, in which one 83 supporter claimed it could output in white.

Now I need this capability, a way to cover up a health bar when it goes down.  I have no idea of a good way to do this, in previous games I used a for loop that did point off for each individual pixel on the bar.  Surely there is a fast and efficient method to accomplish this simple task....
Title: printing a white line
Post by: Delnar_Ersike on January 26, 2007, 06:33:00 pm
I do not think so; however, there is a way to make it smaller, though maybe not faster. Make the maximum number of pixels in the HP bar cleanly divisible by 100, like 50 pixels or 33 pixels. You store the amount of pixels into a variable. Whenever the HP goes down by, let's say, 2% (the maximum amount of pixels would then be 50; if you are doing a different number of maximum pixels, it would be by every (100/number of maximum pixles)% ), a pixel gets erased by PxlOff and the number stored into the variable is decreased by one
Title: printing a white line
Post by: DJ Omnimaga on January 27, 2007, 02:37:00 am
mhmm, I guess you mean the Line( command right? Just add 0 as 5th argument in the Line( command, this will make a white line.