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

This week's Fan Art Friday celebrates Cult of the Lamb! Accept the quest in your quest log to get started.

❄️ ・ 。𝘞𝘦'𝘳𝘦 𝘢𝘭𝘭 𝘣𝘳𝘰𝘵𝘩𝘦𝘳𝘴 𝘪𝘯 𝘢 𝘱𝘦𝘳𝘧𝘦𝘤𝘵 𝘸𝘰𝘳𝘭𝘥 !! ꕀ 🐾 ・ 。

- Perfect System

A buddy requested this nostalgia piece of a vampire Gypsy girl who listens to vaporwave, enjoys Y2K Horror and surfs the Old Web and Retro Forums. I liked adding lots of details to this one.

Another house i made long time ago.

Update 2.627

New challenges & new effects!

I worked so hard to get all four of them to the end safely, but then...

it happens

A few screenshots of the places you'll cross in the Demo of Blu. You can play it today on #gamejolt !

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

#platformer #indiegame #puzzle