Это видео недоступно.
Сожалеем об этом.
Health Bars Reimagined 💥 No Pen...?!? 👍 Scratch Tutorial
HTML-код
- Опубликовано: 17 авг 2024
- In this tutorial we will talk about a clever new technique for creating Silky Smooth Health Bars in Scratch using a sprite & a clone, no pen or stamping required, and with only 3 costumes! This results in a superbly usable health bar with none of the limitations of the costume based method. Learn to code like a pro with this easy to follow Scratch tutorial. Super fun, super efficient, and super effective! Helping you make games that look amazing :) Scratch Health Bars for the win!
🚀 Boost Your Creativity with Griffpatch
The Griffpatch Academy will take you from "Gamer to Game Creator"
Learn more at 👉 griffpatch.aca... 👈
😺 Scratch was developed by the Lifelong Kindergarten Group at the MIT Media Lab. See scratch.mit.edu
🐱 Scratch Studio for this Episode
scratch.mit.ed...
------------- Video Chapters -------------
00:00 Intro
00:43 How it works
01:43 Sponsor
03:21 Let's make this
04:53 Draw a half filled health bar
06:39 Coding the Base Health Bar
07:24 Funky sliding health sprite costumes
08:48 Health Bar Clone
11:07 Making the Health Bar Move
13:16 Cycling Colour with the Health - Green, Orange, Red
14:47 Issues
16:25 Outro
I love how griffpatch gives so much energy and time into his video that 6:43 he renames "base" with "base"
He accidentally change it beforehand
But everyone doesn't
so he has to rename it again
XD that is hallarious
L O L
LOL!
6:40
No one has watched this video to the end yet, but everyone knows that it will be wonderful
This is a creative comment
@@starbeam7679 yea
I have on 2x
@Chicken BockBock222 me too
@@bhaktabasnet7132 me three
Kudos to Griffpatch for finally having a sponsor!
Yea but it's raid :(
Kudos to him??
@@jackatk it means compliments or congratulations
@@jake_oshea15 So what if its raid? I know alot of youtubers use the sponsor, but its no different from any other. Sponsors really motivate creators to continue making content and it really supports them.
@@calmguitar8530 nah its just the meme.
Congrats on the sponsor! I'm glad you're getting something in return for making your tutorials, you deserve it!
Thanks so much!!
@@griffpatch Griffpatch i did not expect this from you.Raid is f--king 9+
@@lzr_music swears are 18+
@@Superfastisfast yup,not in our country.i know a girl that knows all swear words of 3 languages☹
@@Superfastisfast the worst is not that at all.he also knows the d word💀
I think it would be a cool idea to make a tutorial for unique enemy AI.
I have made some games that require lots of AI (some more complex than others), my newest AI design is the most difficult.
not for my own sake but I think it would be cool to see what kind of enemy AI you can develop, removing that robotic feel. such as they follow you until you're out of view/get stuck/get captured.
Edit: if anyone is curious the hard AI I'm making is similar to the gargutron nextbot.
Yesssss
Perhaps a "boid pt2" type video
If it’s a platformer, @dkuniverse has a pretty good so tutorial
he has check his platformer series
I made 3 bosses (by myself) with pretty basic movement patterns in my basic platformer game
Am I the only one here who noticed the ‘’Fill’’ color turning into ‘’Guy’’ from the plateformer tutorial at 5:06? I love this kind of detail, it’s really nice !
I did too!
I did too, and I thought I was either going crazy or he had a modified version of Scratch until it turned back into the regular color.
I found it too!
Same, its neat fr
I found it too!
The quick rundown on how it worked at the beginning was really nice. It let me think of how I could remake it without watching the rest of the video. Which made it even cooler to find out how you put it together
Glad you liked it! - That is what I was trying to do :D
i 100% agree with this
❤
Your healthbar would be so good for an FNF game! Thanks!
Raid? Really?
For anyone who is struggling with the creation of the health bar costume, use this tip instead:
change your brush size to 5 do what he said but outline the area with that pixel and fill it in, it makes the process simpler and easier to stay perfect :)
And for further perfection, to fix any border mistakes, the brush size for the border is 2
"I wish we had drawing tools..."
Griffpatch! The Scratch Addons extension has an onion-skin feature which allows you to see a ghost of the previous costume. (Used alot in animation).
Very nice video, I was expecting a much harder or PEN used health bar.
I use that feature for animating!
This is a really creative way of adding health bars, really cool
The thing that i love about griffpatch is that the code can be used in any project
The "Big" Sprite has literally solved all of my scratch issues! I use it in almost every game I make!
I thought I was gonna be using 200 sprites 💀💀
OH MY GOD! THATS GENIUS, I NEVER WOULD OF THOUGHT OF THAT. On top of it being easy to do with clones or separate sprites (if you don't know how to use clones) but if you were to do it with pen it would be super performant! I am actually gobsmacked, my jaw is on the floor. I'll be honest, when you started the RPG series, I got back into scratch and I started working on a big pen project that I am really proud of. It is defiantly my best game to date and if I end up finishing it I'll come back and let you know.
I'd love that!
Why did I write that damn comment? So I had been working on that big game which was a picross game. I was trying to put a lot of effort into it where I added a level editor, a level code system, I was gonna add community made levels progressively after it was released, I added a level select screen where it loads all the levels and draws them with pen, etc. When near the end of development I realised... WHY AM I MAKING THIS IN SCRATCH!? so I not working on this scratch version anymore and I may potentially make a mobile version in unity instead. I have found that a lot of picross games are either made to make loads of money or just don't have features like level editors and stuff, and I want to put as much into one as I bloody well can. If that ever ends up happening I'll let you know how it goes.
Also, I have only shown this game to friends who either don't use scratch or know what a "picross" or a "nonogram" is so I was wondering if you would like to take a look at it? I could send the .sb3 to you via like twitter dm's or email or something idk.
You really deserve that sponsor for your hard work on these tutorials
Just came from 3D ray-casting. It's nice to go back to the basics
Griffpatch's inventions are always amazing
Thanks for the amazing smoothness! this is a scientific breakthrough in mind! 🎉
Btw, claim your within 1 hour ticket
Ching
@@tommyanepicgameer i claimed it
I am so overjoyed that griffpatch got a sponser! I've been watching his videos for years!
Congrats on your first sponsor griffpatch! Again another great video!!!
I liked the part when you went to the costume category and the fill color saw us and later his eyes dissapereaded, that was amazing!
Yeeey, I was searching tutorials like this and you uploaded this! Thank you Griffpatch!!!
Happy to help!
Just as i was trying to make a brake pressure indicator for my Train Simulator project, awesome
This is an actual good tutorial, 1: It's so simple to code, you can just backpack the code and use it for other projects! 2: It only uses 1 clone, so you don't have to worry about those messy pile of clones, Thank you griffpatch for this :)
This is just awesome! Thanks a lot griffpatch for another awesome tutorial!
You're very welcome!
And, congratulations on getting sponsored!
@@griffpatch =D
i am glad that you have a sponsor now, good job!
Thanks! 😃 - Let's see how things work out, I hope I did a good job with the video!
I agree with you, he is making great videos which we can watch for free, so watch an ad is much easier than pay money for that
Thank you so much! I rally needed the simple health bar for the turn-based combat RPG im working on!
Congrats on 200k!!! 🎉🎉🎉
Never thought I'd see the day when Griffpatch would get a sponsor, you've made it Griffpatch, here's a cookie 🍪
Edit: COOKIES AND MILK PARTY! 🍪🥛🎉
Yum yum thank you!
@@griffpatch I've got enough for everyone! 🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪🍪
@@hussain_2x_ thanks!
@@hussain_2x_ crunch crunch crunch nice cookie
Here's some milk for you guys 🥛🥛🥛🥛🥛🥛🥛🥛🥛🥛🥛
I think it would better to put a broadcast tick block inside a forever loop, and use the "when I receive tick" to do the positioning scripts. That way all the clones and the original sprite can go to their position and it won't lag behind when there are other loops in the project.
Very good idea :D - And it's very much up to you how you want to go about this!
I used this tip. Thanks.
Another thing that could be done is make a custom block that makes a sprite go to a certain position relative to another sprite, because with custom blocks you can disable screen refresh, which is the very tiny amount of time that otherwise passes between the running of each block.
I'm a little confused as to how this would work with a clone. Could you explain this to me?
@@Diego_2-22 I don't think that will work because a custom block inside a loop will still run like an animation, and I think it was griffpatch who discovered the fix to sprites "lagging behind" when going to another sprite using the tick system
For those who want a stationary health bar, I have a fix:
In the [Forever} loop, change [Change x by ()] to a [set x to ()] block, add a minus operator at the end with the original formula (width*percent) in the first slot, and then the x position in the second slot.
Example: [set x to (Width * Percent) - (x position of the base)]
Really useful tutorial. I’ve been using clones to create health bars for several years now and painfully working around a 200 or lower clone limit as a result.
is this your first sponser?
Yep, first one
When will come the next Part of the Tile Scrolling Platformer
I have no answer! I don't have a schedule I'm afraid
Please this is my favorite series
@@saschawalder6361 mine too!
Nice to hear
Pretty please with a orange and white cherry on top
BRO a sponsor on a Scratch video!? Good job Griffpatch! You've made so many handy tutorials!
Every time you continue to surprise me with new tricks i didnt think was possible! This is one of the most creative ideas on health bars. Great job 👍
Why not rpg tutorial !! 😭
that health bar can be used for the rpg project
For me for some reason the original sprite would lag- when I would have my character move (I used this in an already partially complete game) the original sprite would lag behind, but not the clone. I fixed it just by making two clones, each with different costumes in the correct order, detecting which costume it was under the "When I start as clone" and put the script in an if-else statement. It also fixed the tiny line thing, but that might just be because of my size.
Can you tell me the code for each clone?
@@samueldanemedio5870 Sorry, what do you need help with exactly?
@@That1Knife when my sprite (character) moves around in my game, the 'full' healthbar would lag, but not the clone
Sorry if I sounded like a little kid earlier, I didn't know if you would reply because the original comment was 1 year ago.
I just need the code for each clone
I didn't even know health bars could be possible on scratch without stretch... Feels like magic!
Its really weird to hear giffpatches voice in a raid shadow legends sponsor, it's actually kind of hilarious because usually his videos are pretty layed back. Keep up the amazing content 😂
ikr
This technique is AWESOME!!! You deserve a sponsor!
Wow, thank you!
6:06 I think you could of used the brush tool or the line tool to actually draw the edges of the red bar inside
This is so awesome thank you griffpatch!
So simple yet it slipped all of our minds!
Yay, Griffpatch have a sponsor, congrates :D
15:55 : "Ugly like an ugly thing!" ~ Griffpatch, 2022
Hi Griffpatch,
I am working on a custom slider (can't use built in sliders because I want the maximum and minimum value of the variabele to change while the game is running and built in scratch sliders don't allow for that) that goes from X -100 to X 100. However the variabele it controls ("a") can have it's minimum value set to other things, while the game is live. However, I need the slider itself to stay in the -100 to 100 border, and the variabele to stay between its minimum and maximum values (when it detects the variabele is outside the border, it snaps it back to the minimum/maximum value). All I need to make the slider work now is to know how to calculate two changing variabeles into the slider, that whatever english grammar the slider would be -100 if A is at it's minimum value and 100 if A is at it's maximum. I already coded all of the scripts to snap the value and the slider back into their border if they go out of bounds, but I don't know how to calculate the inbetween part, and ChatGPT doesn't know either when I asked him.
This video helped a lot, because trying to fix the variabele slider thing on my own was bad for my mental health and all I can say is, thank you. You helped me figure out how the slider works. So,,, Thank you ;D
Griffpatch explains it to make it easier for you to remember and what it does.
Props for Griffpatch for putting the effort to make this video, very useful for my new game I´ve been working on! Thx! 10/10
Did I clicked 3 times on the link for that RAID SHADOW LEGENDS said "OMG lots of people come on our website thanks to Griffpatch !!" ?
YEEEEEES ! 🔥
I hope so :D
Tip, if you add a enemy like griffpatch did at the end of the video, dont forget that after the "If Touching Crab - Chang Health by -1" you should add another iff statement, and if *Health Less Than 0* And then inside the Statement, add "Set Health to 0"
Boy, I don't know how this is possible in scratch, most of us would be making it so much more complicated than it already would be. But griffpatch to the rescue, he saves our projects in the simplest way possible! Glad you got your first sponsor, and enjoy it!
RPG# 7 coming out soon guys
I’m not sure if anyone noticed, but at 5:07 the guy from the first classic platformer tutorial shows up in the fill drop-down, camouflaging with the default purple!
Awesome! It gives me motivation to code again! Well the reason: I'm a perfectionist and well, need EVERYTHING to go well, so when I create a project, my mind is basically blank. I need some technical stuff! Thanks!
That was the smoothest sponsor transition I've ever seen.
I thought another rpg tutorial was gonna happen lol. But what an surprise for something else! As always, please continue with your hard work
you used to be only useful for your scratch addon but now you are one of my mean inspectors keep up the great work
Thank You! I've been working on a tower defense-type game (With a nice little spin to it) and was in desperate need of a health bar system!
I haven’t watched this video all the way yet, but when I saw it was a new griffpatch video I was like 🤩🤩🤩🤩
Thanks griffpatch this made my day!!
I usually skip the sponsorship segment but didn't this time because I always wanted to hear RAID SHADOW LEGENDS in your voice
I ASKED FOR A MULTIPLAYER TUTORIAL AHHHHHHHH. But this is still good
new multiplayer tutorial time
@@user-sus6969 I saw
Thank you so much all of your tutorials has been helping me with my dream game!
5:08 That guy from the platformer... he's everywhere
GG to griffpatch for having a sponsor!
This is probably the most clever ways for heath bars to be utilised. Such a simple idea!
We did it guys, we got a programmer making tutorials on a kids website so popular he got a sponsor
im making a pokemon game and i've been having a headache trying to figure out how to do this, tysm, this tutorial is a life saver 😭
Griffpatch, your tutorials are so nice!
This is cool, I thought you were going to use clones to have 3 different color sprites but this is a much better strategy
Congrats on the sponsor! You really deserve the support from other larger companies. You have been a HUGE inspiration for me. Without you, I wouldn't even know scratch existed! So, congrats.
6:00 you can use the pen tool and set the pen size to like 1, then it will make you perfect small suquares that are aligned with the grid automatically so you won't have to sit there for hours doubting your own ability to make a box straight
thank you for the video! it really helps. also good job on getting sponsored , i will be playing raid after this video.
I love you griffpatch! I always wanted to make this. What did I do? I made a endless amounts of variables and costumes that sort of work but kept lagging. At the end I had to scrap it because it kept crashing my computer until... griffpatch saves the day.
Wait, I thought this was the tutorial for the RPG game. Eh, I'll do it anyway. I can't miss out on one of your tutorials!
griffpatch i really need your help on this one. Can you make a video on making shops and upgrades for the games. It would be really helpful😊
His first sponsor is the peak of all sponsors
Thank you Griffpatch. It is very useful to my project. Scratch on!
Glad it helped!
this is the first sponser i have EVER seen in griffpatch videos.
Eyes in costume editor!?!?!? ruclips.net/video/dtMy3umcoEI/видео.html
Griffpatch: We Only Need 3 Costumes
Also Griffpatch: 16:03
he lied.
Lol - You caught me! But, it depends if you need it to move off screen :)
@@griffpatch does it take more performance? The sizing one
After 3 years, Griffpatch finally gets sponsored by Raid: Shadow Legends.
This and your save code video both helped me make my own RPG! Thanks!
This man is a certified genius.
Spotted! I saw guy's eyes on the "fill color palette" when you were painting the health bar
The sponsor had me laughing so hard I couldn’t breathe 🤣
i have done an extremely similar method for about a year on various accounts,and i still dont know how to do a pen one that LOOKS good XD
your videos help heaps of scratchers that are just starting out,keep up the good work!!!
Funny thing! I was watching the health bar video today ! Though I'm glad you finally have a sponsor!
Omg I loved the emoji face on that part in the captions. 11:02
Hey Griffpatch, I am a big fan of your games and you have inspired me to make some of my own games, right now I'm working on a pokemon game and I'm getting stuck on a few parts. Do you think you could make few tutorials on how to do some things in a pokemon game? (on scratch)
@griffpatch what do you think?
SPONSER!? NO WAY!
Dude Are You Trying To Break My Brain With The Acurrate Claculations?
I watch this channel of how clever it is, i never used scratch, but these technqiuenes are pretty smart too.
I'm so proud of Griffpatch for his sponsor :')
griffpatch: im a family friendly youtuber who has mostly 10- kids as viewers
raid shadow legends: perfect
Wow! This is so helpful! It was pretty complicated, but still more simple then I thought it would be.
Wow nice, I see this after being half way through creating a health bar with like 100 costumes.
Never thought I'd see the day where Raid would sponsor a scratch programmer! Congrats on having a large enough channel for that sponsorship!
You said this wasn't a video for the rpg but this serves a lot for my game ❤️ Than you a lot griffpach 😊 im doing my dream game 👍
So cool! - Well an RPG kind of has a bit of everything, so yes this too is applicable :D
This was really helpful because I was thinking of using this and maybe something else for the power system in my horror game
Instead of actually creating a separate "BIG" costume, you can make any big shape with transparent fill in the same costume to fix that issue.
Possible, although we have to be careful so the costumes line-up still
Griffpatch has come so far that he even got a sponsor! Keep doing what you do.
5:07 There's an easter egg on the fill box in the costume editor.