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

We're about halfway through #Joltober, and here is some of the great art we've seen so far!

Artists are tagged in the article. Be sure to like their original posts!

Explore the tags to see even more great art!

@Briferstorm is a Jolter to Watch, Brazilian Solo Game Developer, Writer, and Pixel Artist! Follow @Briferstorm before the quest ends on October 28 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!

So

i may or may not make an full art of some person or i may just leave this like that-

Showing off player 2 😎

What do you think?

a drawing I did because I was bored😪. But I love how it turned out.😊

Szayel Aporro Granz - Bleach

Only true badasses may pass! #conceptart #art #gamedesign

A calm and quiet day.. Made surreal by the feeling of finding an elven building in the mountains, and wondering of its purpose and story. I built this elven style house and it was my first attempt at something like this, but what do you think?