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

Instead of doing #FanArtFriday, enter to win Opera GX’s #FirstStandArtContest!

This is your chance to win $5,000 USD! 💸

Art is your weapon. Garen is your champion.

Enter here: https://bit.ly/FirstStand

(We've included Garen variants for inspo!)

Something that I was commissioned to draw last year.

#fnaf #fivenightsatfreddys #vanny #art #digitalart #fnaf

A proud and noble warrior, Garen fights as one of the Dauntless Vanguard.

He's also your chance to win up to $5,000 USD 💵 as part of Opera GX’s #FirstStandArtContest!

Enter here: https://bit.ly/FirstStand

See more variants of Garen for inspo 🔽

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

Here's a peaceful little forest scene for this #screenshotsaturday, from the beginning of the game.

I have added rewards for quests so that villagers can give you something in return for your hard work helping them. 🥳

I want to know - what's your favourite quest reward?

Werehog transformation process. #sonicunleashed

Shuiro Haname. #Commission

Commission for @ShuHaname

Spaaaace~

These are background sprites I've created for a game I'm working on at school ^w^ Click on the post to see how the sprites connect. You won't regret it! (personally, I think it's pretty heheh)

Drawn in Piskel using my mouse. Whaddya think?