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

Here's more incredible art that Jolters made for #GameJoltColors25!

There's still time for YOU to enter!

Artists and posts linked πŸ”½

Here's GREAT art by your fellow Jolters as part of #GameJoltColors25!

Artists are tagged πŸ”½ Be sure to like their original posts!

This week's #FanArtFriday celebrates Story of Seasons / Harvest Moon! Accept the quest in your quest log to get started.

Just as Pecaminosa's musicians #improvise this rendition of #LittleSunflower 🌻, so do we improvise with this post you're reading. πŸ˜‚

What's coming out of your own improvs? πŸ€”

#Pecaminosa | #IndieDev | #OST | #Jazz

Successful landing

#screenshotsaturday

I was bored, so... ManutKat.

Back in my art school days I used to ride the 710 COPSA line from Parque Del Plata to Montevideo almost everyday. This is the Marcopolo Viaggio G4 Mercedes Benz model from the late 80s, one of the older bus models that was running on the line.

Update 2.627

New challenges & new effects!

Showing off player 2 😎

What do you think?

Why walk when you can jump?