Loading...
17
Game
Meikyuu
7 months ago

I got lazy for a couple days, my bad, but the gauge code is done, ta-da


for those who don't really understand what's going on is the HP bar in the bottom prints what percentage of HP is remaining through a set of 20 sprites with names that have a range from 0-100 with increments of 5 and it takes the HPPercentage variable which is found out by calculating the percentage of how much hp is full compared to the max

which is simply done with the tride and true Part/Whole x 100, and then rounding it, but since Scratch rounds with decimals only using the Modulo function set to 5 it'll find out what exact number is needed to reach the closest variable of 5 and then the script adds that modulo number to the percentage to round it to a variable of 5 to be used in displaying the proper HP gauge filling with the sprite using the join block with Join hp + "HPPercentage"



2 comments

Loading...

Next up

Happy #WIPWednesday! Are you working on a game? Making some art? Practicing a song? Something else? Tell us in the comments!

@Sauri1861 is a Jolter to Watch and pixel artist! Follow @Sauri1861 before the quest ends on September 16 and you'll get Coins!

Happy #WIPWednesday! Are you working on a game? Making some art? Practicing a song? Something else? Tell us in the comments!

"Thanks guys for endless hours of fun." 👍

(My first fan art. Read the article, please.)

#sonic #mario #photoshop

Fan art for Foolish I'm feeling kinda better so I drew this

Successful landing

#screenshotsaturday

Path of Kami: The Evolution of the Lore

Quantum precognition is one of the most powerful cards. End game cards & equipment. Demo/alpha build boss is no match for this deck.

Just a Pico sprite

Update 2.627

New challenges & new effects!