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.
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.
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.
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
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! 💛
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!
He deserves the Nobel Prize, not only because the tutorial is good, but also because his way of teaching and charisma makes it enjoyable and relaxing to watch and execute. Griffpatch you are the best
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
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".
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
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.
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!
*Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, My blocks. My grandmother used to tell me stories about the old days, a time of peace when griffpatch kept balance between the scratchers. But all that changed when my stupidity attacked. Only griffpatch mastered all nine scratch blocks. Only he could stop the ruthless stupidity of mine, but when the world needed him the most, he vanished*
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...
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!
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'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 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
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?
I'm working on an interesting game. A remix of Don't sh*t your pants. I needed the number counter for the time I had left until I pooped (in game) and your number counter honestly helped me!
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?
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
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)
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 🎉 🍋
For some reason when I put in the forever loop like you said in 9:52, all my numbers turn into zeros! Is it because I used a different font but also named it "Glow-"?... Or maybe it's something else...?
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...
I have copied the tutorial down to the exact blocks. The only difference made is that I used an enlarged piece of text. This has made it so it jars to the left on an odd number, and back to where it should be on an even. Scratch must have made a change in how the blocks work because it is not like this in the video. I have tried my best to fix it, but it has not worked. I am referring to just before the, "Run without Screen Refresh," bit. This makes no sense at all. If anyone else has encountered this issue and figured it out, please inform me on how to handle it. This tutorial, not in a rude way, is likely now inaccurate.
A couple of days ago I coded this, but I skipped over the part on how to move it left and right so now it’s stuck in the middle. Can someone tell me how to move it?
wsp griffpatch i have a little problem is that when i try to make the center aligning i made equal and when i tryed it has a bug that when i click scratch cat the score go to left and right and idk how to fix it any solution? hope yu understand ;) wait nvm it worked
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
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.
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?
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!
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
Wow I have been waiting to learn this for so long I am glad u made a tutorial on this😃
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)
@@PurbiiXD YEEEES IT'S ME !!!!! HIIIIIII !!!!! :D
@@FeniteFr Hey i have a question does make a game over thing cuase i cannot find it
@@Bananamana_0-0 what type of game over screen do u want i can help you
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
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 🙄
Your videos are definitely worth a subscription. Good job 🙂
If you want the counter to work at any digits of number, just set the loop count to the length of counter.
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!
He deserves the Nobel Prize, not only because the tutorial is good, but also because his way of teaching and charisma makes it enjoyable and relaxing to watch and execute.
Griffpatch you are the best
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 ?
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
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 dont know what i am doing wrong but the counter changes positions when the score changes, and it isnt centered like half of the time
well, it totally worked and I am glad that you uploaded this video
What if I want to move the center aligned numbers more to the left?
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
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.
You actually explain why you do stuff unlike some UA-camrs who just say do this without explaining 👍🏻👍🏻👍🏻😊
when I first watch Griffpatch on YT he had 40k subs. Great job on improving the scratch community!
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
*Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, My blocks. My grandmother used to tell me stories about the old days, a time of peace when griffpatch kept balance between the scratchers. But all that changed when my stupidity attacked. Only griffpatch mastered all nine scratch blocks. Only he could stop the ruthless stupidity of mine, but when the world needed him the most, he vanished*
😂😂😂😂😂😂😂😂😂
LOL!
Me can’t stop laughing 😂😂😂😂😂
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!
Omg i have seen these before and never knew how to do it and griffpatch came in and helped all of us
12:53
You can also set
repeat "length 'Score var' "
And so there will don't need blank costumes.
It's not gonna work
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)
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
14:06 You should draw an Invisible Square around the Glow- costume...
I love how the numbers can be recolored to fit your theme! Thanks!
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
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
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
I'm working on an interesting game. A remix of Don't sh*t your pants. I needed the number counter for the time I had left until I pooped (in game) and your number counter honestly helped me!
Found 🍋 at 3:28
Why scratch cat is holding it i wonder 🤔
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
12:23 thank you I did make it this far!
I love your videos sooooooooooooo much! It's so creative and logical, you make it soooo much easier to understand.
i used this to finally get the price counter working in my game! Thank you so much for this!
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
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
Good score griffpach! I will give you a like!
but how to make it display like 1k instead of 1000 to save space? how to do that? or even maybe later count something like?: 1e+99 or something?
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.
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
i made a combo system and put this counter and it looks SO COOOOOOL
Thank you griffpatch. You made me learn how to make a clicker game! Never quit your channel, Because we need more people like you.
bruh scratch cat has lemon
Yeah 😂
Hey Griff, On the centering numbers part when I add 1 to the variable it keeps going left and right can you help?
dude,thank you so much! i really needed that! You're helping us so much!
My pleasure!
THANK YOU SO MUCH GRIFFPATCH I NEEDED THIS FOR MY CLICKER GAME I SEE WHY EVERYONE LIKES YOU NOW (first time watching)
you made VERY GOOD videos that i even made TIMER using "THAT", not only that i used variables too BUT ITS TOO GOOD, YOU ARE GOD/MASTER OF SCRATCH
Right on time this is what I was looking for thanks
I would do anything to have this guy as my teacher, man 😂
I love his tutorials!! They do help me understand Scratch better, tsym Griffpatch!
Oh my god! Thank you so much! You are a lifesaver and honestly my favorite scratch youtuber!
i really need this for my scratch project, thank you griffpatch!
2 years later and I still found this helpful for my own clicker game! Thanks griffpatch.
I used the center varible system for one of my games, this tutorial really helped me. Thanks Griffpatch! :D
Other than the overlooked opportunity to use the ‘length of (input)’ variable, this was an amazing tutorial
Why i can see a lemon in the hand cat scrach (3:28)?
This is a Griffpatch thing
THANKS this helped sooooo much thanks griffpatch!
This guy is literally what every scratcher wants to be
For some reason when I put in the forever loop like you said in 9:52, all my numbers turn into zeros! Is it because I used a different font but also named it "Glow-"?... Or maybe it's something else...?
Thanks Griffpatch for this Tutorial, now i can use this for my Scratch cat clicker game ;)
though hate math its worth it🤷♂:)
and once my game is done ill give you my game scratch link
This was surprisingly simple! I was accepting it to be harder to code it using if blocks! Awesome tutorial!
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...
Thank you Griffpatch this helped me very much in my game!
I love this game ! It's easy to make and fun to play ! Griffpatch is the Best !
How do you make the number counter right aligned, not just left and centre?
Thanks!
20:06 I Laugh Really Hard 🤣🤣🤣
I have copied the tutorial down to the exact blocks. The only difference made is that I used an enlarged piece of text. This has made it so it jars to the left on an odd number, and back to where it should be on an even. Scratch must have made a change in how the blocks work because it is not like this in the video. I have tried my best to fix it, but it has not worked. I am referring to just before the, "Run without Screen Refresh," bit. This makes no sense at all. If anyone else has encountered this issue and figured it out, please inform me on how to handle it. This tutorial, not in a rude way, is likely now inaccurate.
Thanks!, I used to display battery on my ipad/tablet in scratch !
“click that cat” killed me 💀
You explain your vids! No other Scratch YTbers do that! Thank You!
I wish I had a channel like you and also thanks for all the tutorials
3:28 the cat is so happy holding that lemon
When I try to center my numbers, it sends them flying everywhere! Do you know what I can do to fix this?
At 13:12 in the Score sprite, you said to set the x -180 you actually set it to -160.
while this video didnt completely solve my problem it really helped. I got my number counter working :D
This is so helpful! I use this in EVERY project now!
A couple of days ago I coded this, but I skipped over the part on how to move it left and right so now it’s stuck in the middle. Can someone tell me how to move it?
Me too I forgot to watch that part 😂
Thank you Griffpatch! My number counter works and I already used it for my Scratch game.
Can someone explain me how 20:15 works step by step? I don't quite get multiplying .2 to the displacement part.
I searches for 10min and you learnt me like something random TNX soooo much
wsp griffpatch i have a little problem is that when i try to make the center aligning i made equal and when i tryed it has a bug that when i click scratch cat the score go to left and right and idk how to fix it any solution? hope yu understand ;) wait nvm it worked
18:18 got me laughing
“Tromkin”
I know it's supposed to be centered bu what if I want it to be on the left or right? What if I want two of them?
I want it too
your tutorials are sooooo easy to understand i learnd sooo much THX
I love your videos because you explain it so good, that I understand it XD Great Tutorial by the way
This helped me make an engine! Thanks griffpatch!
Thank you so much! This was such a lifesaver for my project!
You always make me laugh when you say "'Whoops!'' and thank you so much for making this tutorial 👍👍👍👍👍👍👍👍😍😍😍😍😍
griffpatch isn't just revolutionary he's legendary