the fact of how simple it is to convert it over to a different game makes it so much better and something that would take 3 hours to code only took an hour! thanks griffpatch.
This is something I've always wanted compacted and yet this is the most simplest I've ever seen. The techniques in these tutorial just keep getting more clever!
Nice! This is a super useful sprite to add to the backpack. I just added it to my Rocket Canyon Run project and it dropped in SUPER easy to an existing game. Thanks for sharing these with us.
Made my day! I was making a game and was having troubles with the health bars - this is sure to help a lot!! Thank you Griffpatch for always making such useful tutorials!
This tutorial is not only helpful for a shooting game, it can literally work in any game! Thank you so much for the time and effort you put into every video to help us with block coding. Scratch will surely help me a lot to build a base for learning other programming languages and these tutorials are just what I need!
I've always wondered how retro games do pop-up talking texts of characters' conversations. but in Scratch, doing something like this is terribly impossible. It would help a lot if you make a video about it.
For a more dynamic health bar I use a sprite for the outline and a clone for the health portion itself, that changes it's x position based on whatever variable it's monitoring, as well as changing color. Pros: Looks better, don't need to make a lot of costumes. Cons: The bar must be on the edge of the screen so you don't see the health clipping out one side.
Hey Griffpatch, thanks for the tutorial. I'm working on a totally cool little turn-based combat thingy, and this helps a lot for showing each character's HP and mana. Keep up the good work! and stuff.
Looks cool! Can't wait to add this to my projects! Did you know that I have like 85+ unread messages on Scratch because I haven't opened the messages page?! (because of my exams) Maybe I can add this to Appel's boss.
Basicially : make number# of sprites for how many live boxes you have : then make sure you add health like health=(number) then you make a health thingy i dunno how to code woth that Then you create to clone the thingy to your bar then you follow your character above...
I swear griff is so damn underrated. You put so much effort into your projects and videos, and yet get minimal attention for it. Anyways, just wanted to say that i absolutely love your content, has been a fan ever since 2017, keep up the good work!
He's really good, i agree, but do all those scratchers have to smash the follow/heart/star buttons until their fingers break? he's a bit overrated on scratch but here on youtube it's better.
what about tweening the health bar? and instead of making soo many costumes why not move em by -1 depending on the health that way you can tween them or make more variety and for colors u can use pen plugin i guess
This is the same idea that I use! The only downside to it, really, is that the health bar needs to be on the edge of the screen to hide the bar itself sliding
Remember that platformer project that I tried to add Crafting to? Now I made an entire sprite to show every bar/indicator! Will let anyone in need know if finished.
Your tutorials are what make me a good scratcher. Coding is hard but when we have someone like you it helps me understand it better. Thanks for all your videos and projects! -xxxxGam3rBoyxxxx
Very happy about the length and detail of griffpatch's tutorials Funnily enough, there is a scratch tutorial for a very poor """pacman""" on a different channel who takes baby steps for each part (making _two_ costumes is all in ONE PART, and that is not an exaggeration)
i was about to make a very random-ish project about a app in a scratch project(a platformer) and you posted this and this was really useful for me, thank you griffpatch for making this!
thanks as I am trying a lot since 3 years from this year I was trying to make fnaf 2d this helped a lot not only we can apply this to a full game we can apply this to small movements in cut scenes and you have a healthy upload schedule which is great
hey griffpatch, i found out about a thing that might be of interest of you for future self projects, or maybe future advanced tutorials!! in regular game developments, games have a SET framerate inside the game loop. in scratch it is pretty simple to do this using the "timer" variable, me and my coding instructor used this in my remake of the classic game "snake" !! But knowing this, you can now make EXCELENT use of the "turbo mode", because since you can set a frame rate in one sprite, and not set it in another, you can have sprites running code at break neck, lightning quick speeds, which is EXTREMELY useful in RAYCASTING. I should know, me and my instructor have tested this idea!! if you would like i can show you exactly how we have done this, and you are MOST DEFINITELY allowed to use my code in future tutorials if you so wish!! us coders must share knowledge after all.
Sounds like you've been having a lot of fun! I do know about using timers and turbo mode. Until scratch 2 we weren't able to make use of run without screen refresh so needed to do just that. But now with run without screen refresh I haven't ever needed to use turbo mode. Generally you can do everything you need without it... :)
Griffpatch really seems to love his lemonoid game! He always uploads his backpacked sprites into the game, and he creates hundreds of lemonoid Easter eggs!
Man, even watching these concepts be done on a child’s programming language, these videos remind me that I can always “work smarter not harder” and that I usually end up on the latter half of that phrase haha
This video is amazing and it really helped my out, a year ago. But now I’m making a sequel of that game and I’ve a little problem, cause there are multiple “tiles” in my game, and you can move from tile to tile by touching an invisible wall at the side on the screen (this is a new feature), and there are the same type of enemies on different tiles, these are clones. But the problem is that when some clone are hidden, but other clones are shown (like on tile X1Y2, enemies 1, 2 and 3 are shown, but enemy 4, 5 and 6 are hidden) the Healthbars of clone 4, 5, and 6 are also shown. So is there any way of fixing this? And if so can someone help me?
You can make this script as well, I find it to be much better for stamp only games however. When I start as clone; Forever Change Y by 32 [Health] {Health} {Current costume} (No screen refresh) Change Y by -32 Health {Health} Switch costume to {2 by 4 size health bit costume} Repeat {Health} Stamp Change x by 2 Switch costume to {{Current costume}}
A easier way to make it, is for example, if your boss has 40 health, turn it into 4, and your character does 0.2-0.4 damage every hit. Make the healthbar, give it 4 sprites, and make it so "If HP > 3 then set costume to hp full", the gaps between the numbers will keep the costume until you reach a lower number. Keep in mind it's If HP higher, not lower. Lower will cause it to switch sprites every second.
A tip for all scratchers! Always try something yourself before you look up the tutorial Not that looking up tutorials is bad it is a good thing it is a learning experience but sometimes you know you can try seeing if you can do it yourself before you use a tutorial online
Whenever I attack enemies in my game all the sprites lose health at the same time. If I hit one the health decreases but a clone of that also loses health even when I’m not shooting it
Hey griffpatch, could you make a video covering how to search for substrings in strings? (and output the beginning place of the first letter in the substring in the string,)
I also made a variant, the boss health bar. It's bigger, stays at X 0 but Y is varied but at usually -150, it's border is black, the pool colour is normally red which can be changed by colour graphic effect and also fifty-one costumes.
In my game the health bar of the cats start with costume 11 and when i click on the cats the healthbar turns to costume 11 again and when i click the cat a third time the healthbar turns to costume 10 even tho i have the same code as you but everything else works.
This is a nice turtorial but i recommend doing the health bar with pen mechanic instead of just making costumes on your own but this is a good turtorial for beginners
hey, Griffpatch I was wondering if you could please teach us how to make a boss and how to get the enemy to look different for example if I wanted a green enemy to be fast then how could I code that? Oh yeah also maybe like a med-pack to heal and a working shop, please? In classic platformer tutorials Please?
My scratch game got a cameo!
why is this comment so unpopular (9 likes)
@@Wyatt516 I got in late to the video :P
@@Wyatt516 he knows too much
@@mibsmartlearning9621 me?
@@mibsmartlearning9621 I am?
the fact of how simple it is to convert it over to a different game makes it so much better and something that would take 3 hours to code only took an hour! thanks griffpatch.
*27 minutes
Griffpatch: 7:16 "I don't like long lines of code in Scratch"
Also Griffpatch: "LEVEL - Start Game Loop - Respawn"
Bruh
Why did I laugh so hard it this??
@Guilherme Fadigas geme how you do dat
This is something I've always wanted compacted and yet this is the most simplest I've ever seen. The techniques in these tutorial just keep getting more clever!
You can make it a lot more simple with pen.
@@imyasuka who the Frick cares
@@imyasuka thats what i do. but the only problem is they are at the most further back layer meaning they hide behind sprites
sus
I really like these backpackable scratch things that can be used in any project. You should consider making more of these
griffpatch: drawing a health bar wih no outline 2:44
also griffpatch: up the outline width to 4 3:30
If you draw with the outline turned on, then it's hard to align it to the grid... So I draw it with it off, and then turn it on afterwards :)
yolo oOoOO
you play bs?
@@griffpatch yes I know that but XD
@@kaustubhshrestha1265 yess
Nice! This is a super useful sprite to add to the backpack. I just added it to my Rocket Canyon Run project and it dropped in SUPER easy to an existing game. Thanks for sharing these with us.
My pleasure, I played it! Really cool
Made my day! I was making a game and was having troubles with the health bars - this is sure to help a lot!! Thank you Griffpatch for always making such useful tutorials!
My pleasure
Everyone: talking about other stuff
Me: *just waiting for the cat to hit the corner*
This tutorial is not only helpful for a shooting game, it can literally work in any game! Thank you so much for the time and effort you put into every video to help us with block coding. Scratch will surely help me a lot to build a base for learning other programming languages and these tutorials are just what I need!
@Hayyan_SomeWeirdGuy haha!
@Hayyan_SomeWeirdGuy Guess what, he did :D
yes me too I am trying to learn python after scratch but I will stick with scratch for now
@@gh672 Yes, I will learn javascript/html after Scratch!
And Python also
Now, I will add health bar in my shadow fight 2 game, but I will make the width of health bar bit longer. Thanks for this cool tutorial! :)
Can you give me the link to the game?
@@stepanruz Work in progress, but I will soon give you the link when it is complete.
@@stickmandhruv9270 oh i wanna try is it for mobile or for pc only
@@fireboygaming3144 For now,it's for pc only but soon I will try to add mobile controls(Not sure whether I will add mobile controls or not).
I've always wondered how retro games do pop-up talking texts of characters' conversations. but in Scratch, doing something like this is terribly impossible. It would help a lot if you make a video about it.
Try making your own letter graphics and don't rely on scratch say blocks
@@CMM47 do people actually use those still💀
Use or make a custom text engine with clones ez!!!
Camera controls for bonus points
@Yum muy don't you think that's what I meant by letter graphics
@@the_real_yummuy I use them for testing (kind of like console.log in JS) but never in a final project.
Love your tutorials Griffpatch. And this one was what I wanted everytime I tried to create a game in scratch. Thanks a lot.
Glad I could help! Hope you get on well with it!
Amog us?
Among us
Amogus
Amus
The timing is perfect, I just started making a game I'll need this for
For a more dynamic health bar I use a sprite for the outline and a clone for the health portion itself, that changes it's x position based on whatever variable it's monitoring, as well as changing color.
Pros: Looks better, don't need to make a lot of costumes.
Cons: The bar must be on the edge of the screen so you don't see the health clipping out one side.
This is very good... And sounds similar to an approach I also use, but I have a trick that means or doesn't need to be at the edge of the screen
Your tutorials seem to be getting better and better every video!! Thanks a lot for such high quality educational content! 🤩
hi
@@1080GBA hi
Thank you, I used to be so scared of using lists but I feel like I could use them to my advantage now :)
griffpatch always lets us learn the easy way. I love it!
Hey Griffpatch, thanks for the tutorial. I'm working on a totally cool little turn-based combat thingy, and this helps a lot for showing each character's HP and mana. Keep up the good work! and stuff.
Looks cool! Can't wait to add this to my projects! Did you know that I have like 85+ unread messages on Scratch because I haven't opened the messages page?! (because of my exams) Maybe I can add this to Appel's boss.
haha
Basicially : make number# of sprites for how many live boxes you have : then make sure you add health like health=(number) then you make a health thingy i dunno how to code woth that
Then you create to clone the thingy to your bar then you follow your character above...
I swear griff is so damn underrated. You put so much effort into your projects and videos, and yet get minimal attention for it. Anyways, just wanted to say that i absolutely love your content, has been a fan ever since 2017, keep up the good work!
I joined in 2019 a week before the 3.0 update.
;-; language... all u had to say was that he is not getting the attention that is deserved based on his work
He's really good, i agree, but do all those scratchers have to smash the follow/heart/star buttons until their fingers break? he's a bit overrated on scratch but here on youtube it's better.
@@WhoIsShawnRonan bro what he never swore
@@WhoIsShawnRonan are you saying bc he said damn? thats not a swear lol stop policing people they can say whatever they want its the internet
what about tweening the health bar? and instead of making soo many costumes why not move em by -1 depending on the health that way you can tween them or make more variety and for colors u can use pen plugin i guess
This is the same idea that I use! The only downside to it, really, is that the health bar needs to be on the edge of the screen to hide the bar itself sliding
I shall have to make a follow up video to explain how that is possible... I have a clever trick
@@griffpatch obviously you have a clever trick your griffpatch!
Wow, I needed to make a health bar in my game! Your tutorial is on time😄
I don't even follow these tutorials, but when griffpatch posts a new video you gotta drop whatever you're doing and watch it!
GRIFFPATCH YOUR GAMES ARE AWESOME I REALLY LOVE THEM YOU NEVER FAIL TO ENTERTAIN US
Keep your caps lock in control 😂
@@zenitsu1169 why you tease me ??
ah yes a kid who acts like a spammer. don't be like them theyre just lazy and i don't want you to be one kid
@@thatonestickmanguy259 bc yes
i like how lemonoids is slowly getting more and more features through various other tutorials
Thanks for the awesome video as always griffpatch. Keep up the great work!
Remember that platformer project that I tried to add Crafting to?
Now I made an entire sprite to show every bar/indicator! Will let anyone in need know if finished.
Your tutorials are what make me a good scratcher. Coding is hard but when we have someone like you it helps me understand it better. Thanks for all your videos and projects! -xxxxGam3rBoyxxxx
Very happy about the length and detail of griffpatch's tutorials
Funnily enough, there is a scratch tutorial for a very poor """pacman""" on a different channel who takes baby steps for each part (making _two_ costumes is all in ONE PART, and that is not an exaggeration)
How does he not make a single mistake for 27 minutes straight…
Oh man you've no idea how many mistakes I make lol. I just edit them out
I’ve seen these on UA-cam before but none by the legend himself. Been waiting for this over a year. Thank you 😊
my healths are going crazy help me-
My health bars after I modified the custom block went crazy
I have no clue what to do
Yes
i was about to make a very random-ish project about a app in a scratch project(a platformer) and you posted this and this was really useful for me, thank you griffpatch for making this!
Wow, this is absolutely stunning! I'm excited to add health bars to my games hehe
How did you get 21 hours ago it was only published 42 minutes ago
Ik why now
@PythoJava channel membership
@litt le brobgonal ok
@litt le brobgonal
I love this video I always wondered how to do heath bars
thanks as I am trying a lot since 3 years from this year I was trying to make fnaf 2d this helped a lot not only we can apply this to a full game we can apply this to small movements in cut scenes and you have a healthy upload schedule which is great
Is there a way to make the health bar deplete smoothly without having to add hundreds of costumes?
Griffpatch is psychic; he knows exactly what we want and exactly when we want it. Thanks Griffpatch!
hey griffpatch, i found out about a thing that might be of interest of you for future self projects, or maybe future advanced tutorials!! in regular game developments, games have a SET framerate inside the game loop. in scratch it is pretty simple to do this using the "timer" variable, me and my coding instructor used this in my remake of the classic game "snake" !! But knowing this, you can now make EXCELENT use of the "turbo mode", because since you can set a frame rate in one sprite, and not set it in another, you can have sprites running code at break neck, lightning quick speeds, which is EXTREMELY useful in RAYCASTING. I should know, me and my instructor have tested this idea!! if you would like i can show you exactly how we have done this, and you are MOST DEFINITELY allowed to use my code in future tutorials if you so wish!! us coders must share knowledge after all.
This is actually a really interesting concept that I haven't heard talked about much before. Take my like
@@ghastdude589 thank you kind sir. If you know anything about auto generation in scratch I need some help with a game I'm making that uses this
@@Kinguardia I'm not that advanced with Scratch programming, sorry! I just found the idea you mentioned interesting
@@ghastdude589 ah ok. That's fair.
Sounds like you've been having a lot of fun! I do know about using timers and turbo mode. Until scratch 2 we weren't able to make use of run without screen refresh so needed to do just that. But now with run without screen refresh I haven't ever needed to use turbo mode. Generally you can do everything you need without it... :)
The way you use diagrams to explain what you are doing is very good. Keep up the good work griffpatch
Griffpatch saying ‘click click click’ in a murderous tone so funny to me and I don’t know why
Griffpatch really seems to love his lemonoid game! He always uploads his backpacked sprites into the game, and he creates hundreds of lemonoid Easter eggs!
Ikr
But i like that platformer (static) the most. That’s the first series I’ve followed!
@@YepItsSandro yea... That helped me make other games. But I don't follow that tutorial now, I just watch new episodes
Man, even watching these concepts be done on a child’s programming language, these videos remind me that I can always “work smarter not harder” and that I usually end up on the latter half of that phrase haha
Finally i dont need to use pens blocks to make health thank you griffpatch
This video is amazing and it really helped my out, a year ago. But now I’m making a sequel of that game and I’ve a little problem, cause there are multiple “tiles” in my game, and you can move from tile to tile by touching an invisible wall at the side on the screen (this is a new feature), and there are the same type of enemies on different tiles, these are clones. But the problem is that when some clone are hidden, but other clones are shown (like on tile X1Y2, enemies 1, 2 and 3 are shown, but enemy 4, 5 and 6 are hidden) the Healthbars of clone 4, 5, and 6 are also shown. So is there any way of fixing this? And if so can someone help me?
I grew up playing his scratch games and somehow never new about his UA-cam channel
Wow! This is great! It even works for clones!!!
the fact that he just loved the health bar tutorial studio and made this video made this better
You can make this script as well, I find it to be much better for stamp only games however.
When I start as clone;
Forever
Change Y by 32
[Health] {Health} {Current costume} (No screen refresh)
Change Y by -32
Health {Health}
Switch costume to {2 by 4 size health bit costume}
Repeat {Health}
Stamp
Change x by 2
Switch costume to {{Current costume}}
5:30 THE CAT HIT THE CORNER WE HAVE BEEN WAITING FOR THAT ALL OUR LIFE!!!!!
I really needed this video bc in my game I was trying to make it so when the heath hit 0 the player hides, tysm.
A easier way to make it, is for example, if your boss has 40 health, turn it into 4, and your character does 0.2-0.4 damage every hit. Make the healthbar, give it 4 sprites, and make it so "If HP > 3 then set costume to hp full", the gaps between the numbers will keep the costume until you reach a lower number. Keep in mind it's If HP higher, not lower. Lower will cause it to switch sprites every second.
13:44 if black is on top just select the green one then click "forward" on top :)
I added crystal keeper’s universe parallax to my lemon invasion with the healthbars and all sorts of other cool tutorials, and made one sick game!
Great idea👍
GRIFF REALLY KNOWS THE SCRATCH ALGORITHMS! I REALLY HOPE TO BE AS GOOD AS YOUUUU
Perfect for my future video games like the Axel series and most of the Yoshi & Pikachu series.
You are super smart, griffpatch. You fix all those errors and know how to code. Nice video!
You made a new health bar tutorial, showing how to make an easier one. I was wondering how to put the other health bar into the player’s health?
Hi! I actually play your Geometry Dash game on Scratch! Really great work! Keep it up!
Thanks griffpatch for making this tutorial! I was thinking a lot of how to make a health bar on my game so this tutorial is VERY COOL
A tip for all scratchers!
Always try something yourself before you look up the tutorial
Not that looking up tutorials is bad it is a good thing it is a learning experience but sometimes you know you can try seeing if you can do it yourself before you use a tutorial online
this is the best scratch yt in the history of scratch mkay
I am going to add this to my platformer!
this channel should be more popular
griffpatch: talking about important stuff
me: *waiting for one of the clones to hit the corner of the screen*
very great tutorial. I would want to make one someday
I don't even follow the tutorials most of the time, it's just nice listening to Griff patch
Whenever I attack enemies in my game all the sprites lose health at the same time. If I hit one the health decreases but a clone of that also loses health even when I’m not shooting it
Hey griffpatch, could you make a video covering how to search for substrings in strings? (and output the beginning place of the first letter in the substring in the string,)
I love how he screams in 10:29 and how he talks in 10:48 its so funny!
This is the official make MineCraft 3D in Scratch button
THANK YOU GRIFFPATCH! this helped so muchhh
I’m glad this is a clone healthbar because any pen healthbar I use will just go behind everything!
Yes that's the problem with pen
i didn't watch all your videos but did you post an boss fight bc i needed to use this for one
Wow you're tutorials are getting more interesting every day
I've just been waiting for one of the cats to touch the corner.
I also made a variant, the boss health bar. It's bigger, stays at X 0 but Y is varied but at usually -150, it's border is black, the pool colour is normally red which can be changed by colour graphic effect and also fifty-one costumes.
So straight-forward and easy! Thanks!
Thank you so much for all of our hard work. I really love your tutorials.
In my game the health bar of the cats start with costume 11 and when i click on the cats the healthbar turns to costume 11 again and when i click the cat a third time the healthbar turns to costume 10 even tho i have the same code as you but everything else works.
2 days before this tutorial i was looking for a health bar tutorial. This is perfect.
Omg this helped sooo much im making a friday night funkin scratch engine and this is gonna help. Thanks a lot griffpatch :)
I just love griffpatch!
griffpatch i love your tutorials im acctualy a big noob in scratch and now that you have helped me im a pro now 😎 do always keep on going =)
I have an idea for "how to make a great platformer". It's to add boss battles, because you just created a health bar tutorial.
Perfect thing for my game. making a top down bullet hell game right now... will be perfect for EVERYTHING.
I learned to put the health bar in many games. Its pretty simple
One of the the scratch addons I have got rid of the "edit block" option so I had to make a new block 😢
I was thinking about making health bars, but i didn't know how to, so I guess I found this video just on time :D
You should make a fighting, beat 'em up game tutorial!
I love how you always include Appel
This is a nice turtorial but i recommend doing the health bar with pen mechanic instead of just making costumes on your own but this is a good turtorial for beginners
Your the GOAT of scratch!! Oh my God!! Most skilled scratcher!!!!
I like how every time you teach us something you also add it to the Lemon shooter game
i liked it when you were like "But that will clone tons of health bars!!!!"
now I no longer have to put the ugly square of the scratch variables! good videooo
hey, Griffpatch I was wondering if you could please teach us how to make a boss and how to get the enemy to look different for example if I wanted a green enemy to be fast then how could I code that? Oh yeah also maybe like a med-pack to heal and a working shop, please? In classic platformer tutorials Please?