Loading...
17
Game
Meikyuu
11 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 11th Anniversary ONaF!!! 🎉🥚

MEET THE LANRICKS.

I finally made a reference to him with general information and lore, if you're interested! I hope you liked him in uh...a comfortable way. You can use this for fanart as well

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

Here's a peaceful little forest scene for this #screenshotsaturday, from the beginning of the game.

Another house i made long time ago.

Runestones: from concept to in-game model🗿

"Our work is never over" they said.

One of the most critical update for Sunblaze demo. Now you are able to pet a cat! Finally!