Author Topic: printing a white line  (Read 5848 times)

0 Members and 1 Guest are viewing this topic.

Shazane Koronova

  • Guest
printing a white line
« 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....

Delnar_Ersike

  • Guest
printing a white line
« Reply #1 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

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
printing a white line
« Reply #2 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.