Loading...
17
Game
Meikyuu
9 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

Opera GX's #GXNailArt competition has arrived on Game Jolt!

You might have missed Worlds, but you can still be a winner. Take part in the #GXNailArt contest to have a chance to win Riot Points!

Get started by completing our #GXNailArt quests!

@penusbmic is a Jolter to Watch and the Worlds Okayest Dad That Pixels! Follow @penusbmic before the quest ends on November 25 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!

Did you know that today is #InternationalJazzDay? 🎷😎

No? 😯 Well, we couldn't pass up this date!

And what better to celebrate this day than #Pecaminosa #OST? 🎷

Let us know what you think about it and have a great weekend!

We are under attack!

Been working lately on lots of 'behind-the-scenes' boring stuff that no one really cares about, so here’s a guy playing the sax for some reason.

#screenshotsaturday

Just a Pico sprite

In the quest for accessibility, I'm adding Resurrection Shrines for players on the 'novice' end of the platforming spectrum.

In order to unlock the power of a Shrine, you must collect 3 'Souls' from your dead corpses! (the floating blue orbs)

Regional Bulbasaur. #Pokemon

OK, this starts to be too tricky puzzle already :D

#platformer #indiegame #puzzle