Make an Undertale Battle in Scratch (PART 8: Health Bar)
Vložit
- čas přidán 8. 07. 2024
- Check out Futures Lab events at City of Swan Libraries:
swanlibraries.com.au
Here is the Scratch Project:
scratch.mit.edu/projects/3987...
Leave a comment if you have any questions, any problems, or any requests for future streams :) - Věda a technologie
its a damn pain making the healthbar perfect
Found an alternative...
uses cloning so less pain and its atleast 90% accurate
Too late, I just made my health bar's increments 1.25 😭
true
i love this
actually theres a more pro way to do it, ok so
first u make a green bar sprite and a red bar sprite. and after you gonna code this;
if then
move red bar for 1 second (HPsystem) to -5, 0
thats the code I made
Great idea! I'm planning on doing something like that in a future episode actually, especially once we're doing KARMA damage. You use a black bar to cover the red bar, I'm guessing?
@@futureslab4206 like when a bone touched the X cordinate of green bar gonna move to the left by , for 1 second and the heart flashes, so basically you dont have to create 1000 of costumes for the health bar to make it look realistic
Also I love your ideas for scratch undertale, without your channel I would stuck in the paradox of raging and failure lol.
And like, you create a black bar, make it to go to front layer, and dont touch green bar, it can stay in his own layer, and make the red bar to go to the down layer, black bars height can change depending on the green bars height.
Also theres the poison attacks of Sans that makes HP bar go purple, Im thinking that how I can make it work, kinda hard to think because scratch sadly doesnt have the shrinking the bars, so its kinda hard to think, maybe creating a pink bar and make it go to down layer and making it go to left by the ?
I hope you understanded well my friend, because I got bad grammar of english lol 👍
@@futureslab4206 I edited the comment btw
In Deltarune, it doesn't matter. Once it is negative health or it is zero, the character is considered down.
Having a slight problem.. my player takes 5 damage and when i have ceiling of player current hp / 5 then when i press play the health bar is already down.. any solution to this? I have 21 diffrent costumes and it still shows im alive when the health bar is red
Maybe you could hide the enemy and box sprite when you die and they show at the start of your game?
I will try to make a sans like game with your videos 😀 ❤️
hope you reach 1k subs soon :DD
That would be cool!
He hit 2k already
4k@@denkeljuo9681
attacks ive made to my william afton fight;
crosshair (gun attack)
springlock attack(blood rain)
knife surround
following ghost
and last but not least; axe slash
hey is it possible to like make the hp bar - by 1 per hit
I'm having a little problem when I die it just regains all of its health back i only have 10 sprites but i use to have 16
Thank you so much you has help me alot , if i can meet you in real life i must say thanks to you, keep it up !!
i have a problem, whenever i get hit by attacks, the hp goes down a tiny bit more then what i told it.
(around 0.0000000000000001)
i also have a healing system for attacks, (which is just increasing the hp by 0.1 every half second) which also does that. (but heals a tiny bit less then what i told it)
is there a possible way to round that?
Could your healing system be causing the problem with the extra 0.0000000000000001 damage?
Would putting “set Player HP to round(Player HP)” right after you heal/do damage work? (instead of round, you could do ceiling or floor to always round up or down if that works better)
@@tetriscat66 That might work. Have you tried it yet?
@@futureslab4206 I had the same issue one time a while ago and I’m pretty sure this is how I fixed it
@@futureslab4206 I had the same issue one time a while ago and I’m pretty sure this is how I fixed it
does this also work when the character is default at 80 HP
I'm having a little problem when i start the game it allways goes to costume number 10 (90 HP) insted of 11 (100 HP) any help? (nvm i fixed it)
I'm doing this based off of a character that does 5 damage per hit and that player hp is 92. For some reason my costumes are working properly and it taking it to my 5th on and not my 19th (My full hp one). Due to the sheer amount of damage done and hp that the player has I'm not sure if I did this right. Instead of at the full 92 hp costume it is going to my 22 hp costume for the health bar when i start up the game. I don't know what I did wrong and I'm confused and I need help please. I'm sorry.
How strange! If you can tell me your Scratch name and the name of your project I can look it up and see if I can figure out what is wrong, if you like?
@@futureslab4206 thanks but I think I ended up fixing this though. It looks fine to me now.
@@AllietheArcanine Good job :)
@@futureslab4206 thanks ^^
Also, can you make a hp counter instead of a variable?
A good idea, I'll add it to the list!
maybe the KARMA and the losing 1 hp every frame like in the sans fight?
Have you thought of adding the heals from the omega flowey fight?
Oooh, good idea, I'll add it to the list!
@@futureslab4206 Heya, futures lab, I have an issue, when I hit an attack, it doesn't switch the costume to what my health is supposed to be when I get hit, could you help me?
@@foxknownplayz2722 I can help you with another way to make a health bar i made one with clones Unfortunately having high amounts of clones may cause lag which is 1 per max hp you have but if your down i could help you with it
@@foxknownplayz2722 Also you can always use 1 clone for more then 1 hp basically you can make the bar less smooth but less lag
@@vasgaming1555 what I have 200 hp?
Any plans on a tutorial on how to make an Undertale fan game?
Maybe one day!
15:10 zed XD are you indo?
When my health is 100/100 it shows the costume for 90/100
is there a fix for this?
edit: fixed it! just had to add 1!
I got a problem, when I get hit, my screen shake moves my HP bar in random places. Could you give me a bit of a solution?
You can make blue soul ?
Yep, I've got it planned :)
When i hit the green flag at 12:40 the hp sprite always switches to the 90 costume. how do i fix it?
How many costumes do you have in your HP Sprite? 11?
@@futureslab4206 yes
@@futureslab4206 I found the problem, nevermind.
@@salami_fart Good job!
i try code it but fail ,HP never decrease when hit
18:35 EXEMPLARZ DELTARUNE
i made more sprites for the health bar and i tweaked the coding to get it two times more accurate😀
Good job!
@@futureslab4206 I made mine 4x more accurate by increasing it by 2.5 each time!
i subed
Excuse me? I found a glitch. Whenever I get to this part of the tutorial, I follow everything perfectly, but when I test the health bar, it ALWAYS starts me off with 90% health, when I'm at 10% health, the bar shows 0, and when I'm dead, the bar shows 100%. What am I doing wrong? What is the glitch, and how do I fix it? Thank you for your time.
Make sure the costume with 0 HP is costume number 11. Does that fix it?
@@futureslab4206 my health starts at 100 and whenever I start the project it starts at 0%
@@7nulBM How many costumes do you have in your HP Sprite? 11?
@@futureslab4206 I deleted some to make it 11
@@7nulBM Ok, are they in the correct order? Is the 0 HP costume number 11?
Idk how to zoom in lol
Unfortunately, i have mastered pen so ye
Ain't too important for me (i've changed my bg cuz i also needed glow and stuffs)
Also there is indeed another way, this is just ineffective
Add 2 black boxes beside the hp bar, infront of both of them
Make the green change the x depending on the hp (using set x to (hp × (idk just test))
Also you indeed CAN make ur custom number ratehr than the scratch's number
my health bars doesnt work :(
Are the costumes displaying in the wrong order?
plz make a friday night funkin in scrach plz : }
No worries, I'll add that to the list :)
18:39
Making the health say 100 / 100 wont work good it just does nothing
MORE
Why does it not work
Oh, wow… I just found an easier way to do it and fixed it
Doesnt works
“Dosent works”
first`comment
lol
Hey do you have discord? I have a problem that i want to show to you.