Loading...
13
Game
Meikyuu
1 month 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

The #BadArtChallenge is over and we're highlighting some of our faves!

You made such incredible bad art that we couldn't just give one of you a trophy.

The artists are tagged below

@TofuPixel is a Jolter to Watch and a pixel artist from England who works on indie games. She likes horror, nature, and funny animals! Follow @TofuPixel before the quest ends on April 15 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!

Chiaki Nanami!

Path of Kami: The Evolution of the Lore

Enemies can also suddenly spawn through Realm Rifts. These Rift Spawns are going to be stronger than the ones wandering around. TBD on the enemies... #screenshotsaturday #godstear #madewithunity

Protege el conocimiento, salva la historia. Guardian of Lore es un platformer 2D en el que debes luchar para mantener viva la memoria de la mitología latinoamericana. El juego llegará a Steam el 18 de mayo: https://steam.pm/app/1211740 #ScreenshotSaturday

I was bored, so... ManutKat.

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

Showing off player 2 😎

What do you think?