Author Topic: printing a white line  (Read 2927 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

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55858
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ 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.
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



Official Website |T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify