Awesome Number Counters đŻ | Exciting Scratch Game & How to Tutorials
VloĆŸit
- Äas pĆidĂĄn 28. 06. 2024
- Easily and quickly enhance your Scratch Games by replacing the player's boring Score variable reporter with a bespoke costume based Number counter.
Let's face it, the Scratch Variable reporters look old and boring - So liven things up by learning to code a number counter using clones and any font costume you can find or draw yourself! Then drop it in to any project!
My tutorials are for all budding game & software developers using Code Blocks. Scratch On guys!
đ Boost Your Creativity with Griffpatch
The Griffpatch Academy will take you from "Gamer to Game Creator"
Learn more at đ griffpatch.academy đ
đș Scratch was developed by the Lifelong Kindergarten Group at the MIT Media Lab. See scratch.mit.edu
đ± Scratch Studio for this tutorial - scratch.mit.edu/studios/30805...
đ Quick and Fun Tutorials - âą Quick and Fun Scratch ...
đ Lemonoids Space Shooter Tutorial - âą Code a Fun Space Shoot...
â€ïž Scratch Addons - scratchaddons.com/
đč Video Editing Software - techsmith.pxf.io/c/2682566/50...
-------------Video Chapters-------------
0:00 Intro
0:34 Clicker Game Variable Reporter
1:36 Importing Font Costumes
2:44 Letter to Costume Name
5:22 Using Clones for more digits
7:07 Identifying a clone (Clone ID / index)
9:33 Updating the Score in real time
10:30 Score Lengths & Blank Digits
13:00 Score Positioning
14:39 Centre Aligning Text
17:48 Run without Screen Refresh
18:18 Animating Digit Changes
21:00 Text Engine?
21:58 Scratch Studio
22:18 Outro
when the world needed a Scratch tutorials channel, a person by the name of Griffpatch appeared and helped millions. what a great channel!
dont forget he is the first scratch tuber
@@Glainwats cap
My brother was
@@NoobmanDiaherra *proper scratch youtuber*
@@SomeoneCalledAdrian ok
if you set size to 0% rather than 100% in the setup custom block, you get a cool effect where the numbers pop up
true
100% true
I'm using this for a fnf game on scratch
@@paradox_225 fnf games are banned now
@@vidyav1925 why?
This manâs tutorials are really special, instead of him saying âdo this and then thisâ he shows us how we could figure out solutions ourselves, which is really awesome.
I cannot stess enough how your videos help me so much, with things like this I always thought the coding must be so hard, I always wished I could have better looking variables but I thought it would be really hard to code, but, yet again, as always, you find a simple way of sloving these problems.
Great! Also, I can't wait for the 2-d procedural generation video. Griffpatch is destined to do revolutionary scratch coding yet again.
Yes ... I want to make minecraft 2D
Same.
He disserve 1 million subscribers
Maybe a 3d game for a series
@@beastmaster6945 he is almost there
Thanks, GriffPatch for the detailed tutorial. I was worried because i didn't leave a blank costume, but you explained that later on and that really helped me, thanks again.
Ive needed to know this foreverđ Thank you Griffpatch!
After 1,5 years I finally followed this tutorial ! đč It's for a new little project where I just needed this đ Thank you Griffpatch ! đđ»
PHOENIT?! (hey wassup i'm Cosmolan_Coder)
@@Purbii704 YEEEES IT'S ME !!!!! HIIIIIII !!!!! :D
@@FeniteFr Hey i have a question does make a game over thing cuase i cannot find it
@@daniyalnaeem7080 what type of game over screen do u want i can help you
I was just going to make a number counter in my game using a list variable, but this is a whole lot simpler and arguably better
Your tutorials are really easy to follow and understand! Before seeing this I thought making one of these would way too hard for me. Thanks for the video!
yeah
Omg i have seen these before and never knew how to do it and griffpatch came in and helped all of us
Wow I have been waiting to learn this for so long I am glad u made a tutorial on thisđ
Very helpful! I had made one myself but it was bad because it re-created the clones every time the score changed (so it was some lag and glitches), but this is a lot of better! Also thanks for the centre text aligning.
OMG, thank you for making this tutorial, it really helps. I was struggling to make a timer in my maze project (from your video), I have it as a variable for now but now I can make it as costumes! đ
Hey mate, don't span it please
@@griffpatch Why not?
@@IG00Channel It would cover some pathways, I think?
@@shravyajain672 You could've put it on the bounds
@@IG00Channel đ
This was surprisingly simple! I was accepting it to be harder to code it using if blocks! Awesome tutorial!
Outstanding presentation! I'm looking forward to adding this to my Lemonoids (based on your other tutorial) and my Mowing Simulator 3000 projects.
Wow, I can't believe you make this with only 1/2 amount of blocks I used to make this and its even work more effectively when I don't need to delete all numbers when I want to add one more number like from 99 to 100
I would absolutely love to see a tutorial on "adaptive ai" in scratch, I know it will be a tough one to make and think through, but it is a topic I have interest in...
He he me too!
Cool!!
Yes, I'm Brazilian and I was inspired by this Channel @Universo Programado
ive been looking into machine learning on scratch, it would be epic to see griffpatch make a vid on it !
Even I want to really see an AI tutorial, so I can make some awesome projects of different creatures interacting!
2 years later and I still found this helpful for my own clicker game! Thanks griffpatch.
The center aligning part REALLY helped me with a Pizza Tower Text Engine i'm making on Turbowarp! Thank you very much!
I think you should do (if ((length of (SCORE)) > [Max amount of number that can be shown]) repeat [max number] [script goes here] else repeat (length of (SCORE)) and in the first âwhen I start as a cloneâ after the costume is set do if ((length (SCORE)) > [Max number but minus 1]> set costume to (Glow-+) show variable SCORE [then place it under the numbers] so that if their score is higher than the max amount that can be shown they will know what their full score is and not think that it decreased
Cube Creator 3D fan?
@@squixypixl ?
Your videos are definitely worth a subscription. Good job đ
I'm making a calculator using scratch and this has really helped so far with the calculated value.
thank you soooo much griffpatch! this helped me make my project so much better!
I have made my own score counter before, but it used deleting all the clones and creating new.ones so I can stay below the clone limit, and have as many characters as I want. I still could have improved it by only deleting clones that don't have a digit, and just changing the clone costume when the counter updates. I think I'm gonna try to creat a new project with my new idea.
Thanks for the tutorial griffpatch. This would really help out my game that currently in production!
This is great! If Scratch Lab text thing finally came to the normal Scratch, we would do this thing easy with some fonts. Though, thanks for the tutorial!
I hope they add that before 4.0 comes out
@@camelcam6008 YES
I set my glowing font colors to rainbow and when they changed, they actually looked pretty cool, probably cooler than the light blue.
I also did that
omg hi mikey
I'm copying you lol
Thank you very much, I really needed this because I was making a platformer game in scratch so I needed this for my "Coins" Score so thank you and i also might use this for my clicker game too! so thank you very much i really appreciate it!
I was very excited to watch this video, that much excited that you ever can't imagine !!
Awesome video! Just wanted to add that you could automatically expand the number of clones by replacing the 6 in the repeat loop with a length of "Score".
@That clone trooper in the back on the high groundu sure? I don't think so!
That would work. I did think there must be an easier way to do that, but couldn't figure it out while watching.
i was thinking the same way too
I have tried that and it works!
An IQ 999 move right there
Tip: if you want the amount of digits shown to always be enough to display your score, then make a block, make sure it runs without screen refresh, then make a variable to display the amount of clones you have, put âchange by 1â in your repeat loop that makes clones of the score thing after the âcreate clone of myselfâ block, then make a new, make sure you checked the ârun without screen refreshâ box, then duplicate the contents of the repeat loop into the block that says âdefine â, then make a forever loop and put it on the âon startâ event block, then put an âif length of score greater than â statement in the loop, then put in it ââ, then run the code and make sure it works and if so, youâre done!
Thanks for the tip, really helpfull and cool. But i'm lazy and i'm just gonna finish this tutorial because i'm an almost at the finish.
or u can just put in the repeat loop to repeat lenght of score
but the big madness at 17:08 didnt work for me and i think it was bc of that so i changed it to (0-(((length of (score))/2)-((index)-(0.5))*((size)/2)
i used this to finally get the price counter working in my game! Thank you so much for this!
I used the center varible system for one of my games, this tutorial really helped me. Thanks Griffpatch! :D
by updating the number by a message of the score adding source you could get a really nice performance boost. They will only update in case of a score change(you could alos achieve that by waiting until the current costume =! the assigned... yea, you get it)
Griffpatch, you can actually use repeat ( lenght of [variable] ) to make number long just how many you want without having to add it all in
I'm not sure how to do it so that it automatically updates when the score changes though- if you start at a score of 0, then it'll only be supportive of 1-digit values.
@@kuperlilu5340 already tested and it works perfect :)
@@ZnidrqXizzrJh Could you tell me the code?
@@kuperlilu5340 replace the number (input) in the repeat that repeats how many clones the sprite spawn ( how many digits the number has) with the < Lenght of ( ) > fill in the blank with the score variable on ur project
This is so helpful! I use this in EVERY project now!
Other than the overlooked opportunity to use the âlength of (input)â variable, this was an amazing tutorial
12:23 thank you I did make it this far!
Love it! And also we can use this for timer like 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 and time's up! đ
Yes just *Wait '1' second*
*Change 'variable' by '-1'*
@@no_face1 Yes. Really simple. :)
@@Milan12234 You'd also have to have a script for deleting the other numbers, idk how you'd do that though
@@Dxuser5 You don't need to do it. It will work. You remember that blank costume?
@@Milan12234 oh yeaaaaa, im stupid XD
This helped me make an engine! Thanks griffpatch!
Thank you so much! This was such a lifesaver for my project!
Hi griffpatch. I don't know if you are reading this, but, could you make a tutorial for massive cloud multiplayer? Like your MMO platformer! I know that is needed to make each cloud variable to a group of 10 players, just for example, and then, with 8 cloud variables, you have 80 players! But how do we do that?
lots of encoding stuff
@@KashTheKingYT duhh
Fun Fact: Using a negative number spawns a 0 in front of the other numbers if for example, it is something like -123 would display as 0123. Also, There is no decimal point display if you set the number to something like 12.34. Perhaps in a future tutorial, there could be an explanation how to set these up?
Easy, you just need costumes with a . And a - as the next character after the Glow-
@@griffpatch i got one bug
oops nevermind. That not a bug.
@@griffpatch you should make a tutorial on bigger numbers (since they can't fit on the screen) and change the counter to 1.35M (million)
@@griffpatch it keeps setting it to n.199999
Awsome! It works Really smooth! I just recreated it, and will use it in many projects! Griffpatch saved another Day!
dude,thank you so much! i really needed that! You're helping us so much!
My pleasure!
This is something I really needed! Thank you Griffpatch!
FYI
If you want the numbers to align to the right, you just have to do two things:
1. Change the clones so that indices are opposite (4321 instead of 1234)
2. Instead of switching costume to (letter(index) of money), switch it to (letter((length of money - index) + 1) of money)
what? i dont get it sorry
I love your videos because you explain it so good, that I understand it XD Great Tutorial by the way
Right on time this is what I was looking for thanks
This looks great, and I canât wait to start coding. Iâm always bored with the lame counter that Scratch defaults
Ah yes, Scrtahc. (sorry if i made fun it just made me laugh lol)
@@boxyanim8ion lol itâs okay I didnât realise I was typing fast
I would watch a whole series in a day if you made a project where you can make your own code. Like drag and drop or nodes, that control a character.
-scratch within scratch-
Those exist, thought extremely limited.
Wait, its just Scratch in Scratch?
@@weegeenumberone2 always has been
@@eteled6312 lol.
Oh my god! Thank you so much! You are a lifesaver and honestly my favorite scratch youtuber!
Thx so much for the help has improved almost all my projects
12:20 el nos limita a usar 4 clones por "score-table" pero hay una funcion que se llama, "longitud de..." podemos usar esta para ponerla como longitud de la variable SCORE, y asi crear los clones que sean necesarios
*ÂĄMuchas gracias!*
OMG đ this is just an incredible idea to create tutorials that we can follow alone and in a serie đ„
THANK YOU GRIFFPATCH â€ïžđž I'll join the membership soon đ đ
IÂŽll also join the membership soon!
@@amos9g đđđđ
@ 0 NO
S KAPPA FOR Z
This helped me alot, Thanks for making this video! You are the best! Keep going!
I'm making a trading game and to see how many resources the player has in their inventory, I didn't wanna use normal boring scratch variables. this is so helpful!! Now all I need to do is figure out how to assign them to each resource and make multiple of these...
Found đ at 3:28
Why scratch cat is holding it i wonder đ€
bruh scratch cat has lemon
Yeah đ
Your tutorials are amazing!
when I first watch Griffpatch on YT he had 40k subs. Great job on improving the scratch community!
Oh my god your the best teacher ever.
Learning with you is soo fun .
Thank you so much for doing this!!!
Thankyou griffpatch! you helped me understand numbers with a sprite!
Not sure if you included this in the video, but the maths is if you want to align the numbers in the center of the entire screen. If you want to move the digits, you have to offset the maths by the x position.
So it would be:
set x to {requiredXPosition + { [ (index - 0.5) - (length/2) ] * (size/2)} }
Put simply, add the required position to the equation that griffpatch makes in the video.
*I couldnt find you mentioning this in the video, and thought this tip would be helpful to others
Amazing Tutorial! Really helped my game shine!
Thank you Griffpatch! My number counter works and I already used it for my Scratch game.
Thanks for this! Currently making a platformer game, and this helped me create a gold counter for it!
Thanks! Your tutorials help a lot!
THANKS this helped sooooo much thanks griffpatch!
You explain your vids! No other Scratch YTbers do that! Thank You!
Thank you griffpatch. You made me learn how to make a clicker game! Never quit your channel, Because we need more people like you.
your tutorials are sooooo easy to understand i learnd sooo much THX
thanks so much for the great tutorial again ! first engine and tutorial where i can actually understand what i make !
This actually worked you earned a sub
Huh, this is actually really neat. Taking coding in year 9, so this might help. Maybe you could make a video about making *upgrades for an incremental/clicker game,* if you haven't already. Buttons you push if you have enough of a SCORE value that makes each click give you more score, and other buttons that even give score automatically. That'd help a bunch.
You can make a button with a variable named something like cashNeeded. this would be how much cash would be needed/upgrade. every time the button was clicked, it would multiply it by, for example, 1.5 times. you would also have another variable called multiplier. If you wanted to do a clicker game, every time clicked, you could add multiplier, or, (for example, 1, but you could do something bigger) x multiplier. hope this helped!
Me: goes to scratch to open editor
Griffpatch: âŠand that fellow Scratchers, is how we solve nuclear wars
THANK YOU SO MUCH GRIFFPATCH I NEEDED THIS FOR MY CLICKER GAME I SEE WHY EVERYONE LIKES YOU NOW (first time watching)
This is soo cool thanks for the best tutorials ever!
i love how you make tutorials and channel!
I needed this so much thx!
Thank you this was truly informational
while this video didnt completely solve my problem it really helped. I got my number counter working :D
Thank you! Love your content.
I have been helped immensely by your vids!!
i like how you're always so positive!
Thank you griffpatch it helped me a lot!!!
Thanks so much griffpatch, my game is less boring now!
What if I want to move the center aligned numbers more to the left?
Well just what i needed!
This guy is literally what every scratcher wants to be
I saw ur AMAZING getting over it. This video is gonna be good
That really helps to create my clicker game. Thank You!
Thank you so much this helped out a lot.:)
I searches for 10min and you learnt me like something random TNX soooo much
You just saved my life! I have a headache from trying to remix a game!!!!
AMAZING! I DIDN'T KNOW THAT WOULD HAPPEN EVER!
18:18 got me laughing
âTromkinâ
Thank you so much! It works great!
I love this guy's videos!!!!