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!

Lace fight was hard.. on my feelings...

@BeyondThePixels is a Jolter to Watch and a game developer re-inventing 90s retro cool for todays gaming community!

Check out their game Astro Burn: https://gamejolt.com/games/Astroburn/1023196

Follow them before the quest ends on October 21 and you'll get Coins!

art comission.

"Our work is never over" they said.

A Shiny Mega Gengar 🌟 For @ManutkArt 's #ThreeColorsChallenge!

Hi everyone! I started to create some environment props for my new video game, here is a cozy house in the forest. I'm planning to switch from Unity to Unreal... Let's see what new challenges I have to face. Made in Blender and Substance Painter.

A house I've built a while ago. :)

It nicely separates the snowy biome from the grassy one.

It's built with painted Ebonstone.

Why walk when you can jump?