How to make a SCORE COUNTER - Scratch tutorial

Sdílet
Vložit
  • čas přidán 24. 01. 2022
  • In this video, I will show you how to make a score engine in scratch!
    The finished project (You can get all the assets here): scratch.mit.edu/projects/6253...

Komentáře • 176

  • @caedutiger9362
    @caedutiger9362 Před rokem +8

    This is like griffpatch video when he did the number counter, but I think that this is a bit more customizable, great work!

  • @lukanafetvaridze6075
    @lukanafetvaridze6075 Před 29 dny +2

    griffpatch = explains for 22 mins
    also scratch in minutes = explains in under 5 mins
    new sub boi

  • @IrishCarbs
    @IrishCarbs Před rokem +5

    I was struggling to find a tutorial about number counters that actually works, a may have spent too many hours trying to find a good tutorial, but eventually I found this one. So thank you and goodbye.

  • @OreoTheKitty
    @OreoTheKitty Před 29 dny +1

    This is REALLY good, usually when you watch a tutorial you will not know how to connect it to your project, but this is very simple and easy to connect to a project like a clicker or a timer!

  • @nooneisathome
    @nooneisathome Před rokem +3

    Thanks a TON
    I was able to adapt it into my game and the way you explained it made it SO much more simpler
    Thank you!!!!!

  • @burakkaymak4628
    @burakkaymak4628 Před rokem +6

    i think this video was better than griffpatch's video

  • @RoastFederal
    @RoastFederal Před rokem +1

    This is the best tutorial for this because its quick and easy to do.

  • @TrulyBluee
    @TrulyBluee Před 6 měsíci +1

    Great video, out of the 2 other counter scripts I tried first, this is the only one that works exactly how I want it.

  • @caiorafaelmatheus9172
    @caiorafaelmatheus9172 Před rokem +1

    Thank you so much!!! this video was better than any other tutorial I found!

  • @ibk1111
    @ibk1111 Před 6 měsíci +1

    Just what i needed man..straight to the point lovely work earned a sub

  • @thedogekingofroblox
    @thedogekingofroblox Před rokem +1

    TYSM! ive been looking for tutorials that work, and i finally found it!

  • @andrewman1855
    @andrewman1855 Před rokem +2

    Thanks so much for this tutorial it really helped.

  • @Bluecupcake_funko7
    @Bluecupcake_funko7 Před rokem +2

    Needed to delete stuff for it to work but still the best out of all of them 7/10

  • @radishmaster8889
    @radishmaster8889 Před rokem +2

    Thanks! This video is helped me realy much!

  • @idkWhatMyNameShouldBeLol

    Thank you so much! this is very helpful!

  • @nicolasvalverdemendez6915

    Greaat video duuudee, helps a lot, this deserves a follow

  • @BlueberryChannelLol
    @BlueberryChannelLol Před rokem +1

    Nevermind I realized I had it on set x and not change x everything is good now! Thanks a lot!

  • @NothingEplK
    @NothingEplK Před 2 měsíci

    Thank you so much. Worked just like a charm, And your voice is really calming so it helped me relax after a hard day in school, thank you

  • @RealAlexzX
    @RealAlexzX Před rokem +4

    THANK YOU IT HELPED A LOT

  • @tinyarr
    @tinyarr Před rokem +2

    hey um, how do i make letters that actually move with the numbers? and i need to make a shop and stuff with the counter.

  • @Nova_4444
    @Nova_4444 Před 8 měsíci +1

    Tysm I tried GriffPatch and 3 other tutorials but only this one worked

  • @SomeGoatedPerson
    @SomeGoatedPerson Před rokem +2

    Great video

  • @Username-mp8jl
    @Username-mp8jl Před rokem +1

    you deserve more likes and also i subbed :)

  • @thegreyknight-mov
    @thegreyknight-mov Před 4 měsíci

    Thank you!! :D

  • @draggggggggggd
    @draggggggggggd Před měsícem

    thank you so much!

  • @BallisticLyrics
    @BallisticLyrics Před rokem

    THX SO MUCH i needed this video im subbing you should have more

  • @stascraftt
    @stascraftt Před rokem +2

    TYSM!!!!!! This is so eazy and fast. I will place it in my backpack

  • @purekayx
    @purekayx Před 8 měsíci +1

    THANKSSS!!!!! You are better than griffpatch and so underrated!!!

  • @user-ef9to2wn8g
    @user-ef9to2wn8g Před 6 měsíci

    Thanks I really needed this. You earned a sub and a like

  • @poppykitten9546
    @poppykitten9546 Před 2 lety +3

    THANK YOU SO MUCH!!!!
    Edit: When I commented I cant see it, I forgot to put "create clone of (myself)"

  • @165-yosafatbeltsazar-sbm9

    hi scratch in minutes, why does my second and third digit number flicker? seems to be a problem at the "delete clone" part, but i can not seem to figure it out. thanks

    • @scratchinminutes9685
      @scratchinminutes9685  Před rokem

      Are you using the block? If you're using the block instead, it will flicker!

  • @GuyWithoutGirls
    @GuyWithoutGirls Před rokem +2

    Hey I know this video was ages ago but how do I make it go up every time my bullet hits an enemy

    • @scratchinminutes9685
      @scratchinminutes9685  Před rokem +1

      You can create a new variable and increase its value by 1 every time an enemy is hit. Then simply take the variable and put it in the 'N' input of the 'Show Score' block we made in this video!

  • @regnarix8557
    @regnarix8557 Před rokem +2

    Hey! i have a problem when ever i try to get the score up or something it shows that score for 0.1 seconds and goes back to 1
    How can i fix this?

    • @scratchinminutes9685
      @scratchinminutes9685  Před rokem

      scratch.mit.edu/projects/625357139/
      This is the link to my score counter project shown in this video. You can click the [See inside] button to see the original script. Try comparing it with your version, or just copy & paste!

  • @breadTW123
    @breadTW123 Před rokem +1

    Thank you

  • @zekielfore2845
    @zekielfore2845 Před 2 lety +2

    TYSM SOMETHING WORKS FINALLLY

  • @ImaWubbox465
    @ImaWubbox465 Před 8 měsíci +10

    it crashed my game… NOW I HAVE TO RESTART ALL OVER AGAIN 🤬

  • @erwingamez
    @erwingamez Před rokem +2

    Just wondering, let's say I had a different sprite and if I clicked it what do I need to change to make the score increase?

    • @scratchinminutes9685
      @scratchinminutes9685  Před rokem +1

      You could create a variable such as 'Click Counter' and increase it every time you click the sprite. Then, put the variable in the [Show Score] function shown in this video, and you're all set!

  • @fusionfurious
    @fusionfurious Před 11 měsíci +1

    HELPFUL

  • @Haiwoofficiall
    @Haiwoofficiall Před 5 měsíci +1

    TYSM

  • @yosephdawson7045
    @yosephdawson7045 Před 2 lety +1

    hello, so i know this was like 3 months ago but i noticed that u were asking for ideas for vids to make, so i'll be suggesting an RPG / open world game
    (p.s. dude ur super underrated keep up the good work bro :D)

  • @yosephdawson7045
    @yosephdawson7045 Před 2 lety +1

    ur seriously underrated man :D

  • @Acsesion
    @Acsesion Před rokem +2

    I was finding this for about. Month this actully works ! thanks so much but now how do I make it if I want it to be in a clicker game?

  • @Average_Bottle
    @Average_Bottle Před rokem +1

    bro just went straight to the tutorial

  • @caiorafaelmatheus9172
    @caiorafaelmatheus9172 Před rokem +2

    How do i hide it at certain points?

  • @ADudeNamedCaleb
    @ADudeNamedCaleb Před 9 měsíci +2

    Nice tutorial! You are very underrated! But When I have a number >9, the last digit glitches. How do I fix this?
    Edit: forgot to use run without screen refresh that's why

  • @caedutiger9362
    @caedutiger9362 Před rokem +3

    Now that i watched almost all your videos, you could make more of this, but i recommend pausing more when doing the blocks and explaining a bit of why you have to do it like this, also zoom in the blocks a little bit for a better view of what is the code, aside from this you have a pretty good channel, hope for improvement 👍

  • @Mr.LAGINATOR
    @Mr.LAGINATOR Před rokem +2

    hi scratch in minutes, I just wanted to ask how to make the numbers smaller because mine are huge.
    Thanks!

    • @scratchinminutes9685
      @scratchinminutes9685  Před rokem

      Hmm, maybe you can try adjusting the size of your sprite with the [set size to (100) block, and then changing the SBN (Space Between Numbers) input to your liking!

  • @adak8520
    @adak8520 Před 2 lety +2

    thanks for you

  • @TUTOLUQUI
    @TUTOLUQUI Před rokem +2

    Hi! it works well but its lagged. any suggestions?

    • @scratchinminutes9685
      @scratchinminutes9685  Před rokem

      Hmm, you could try and replace the [create clone of (myself)] block with the [stamp] block... But this will make the numbers a bit blurry.

    • @TUTOLUQUI
      @TUTOLUQUI Před rokem +1

      @@scratchinminutes9685 thanks!

    • @scratchinminutes9685
      @scratchinminutes9685  Před rokem

      @@TUTOLUQUI No problem!

  • @Daysseemerolling
    @Daysseemerolling Před 4 měsíci

    This is better than griffpatch’s tutorial sorry griffpatch

  • @PixlBTW
    @PixlBTW Před 2 lety +1

    is there a way to add prefixes like million billion etc...

    • @scratchinminutes9685
      @scratchinminutes9685  Před 2 lety +1

      Hmm, I don't think there is an official scratch function for that sort of thing, but if you want, I think I'll be able to make a tutorial about it!

    • @PixlBTW
      @PixlBTW Před 2 lety +1

      @@scratchinminutes9685 sure!

  • @lucasvogtparolin1329
    @lucasvogtparolin1329 Před rokem +2

    Hi! I tried to use this engine on cloud variables but it became laggy. The sprites are always blinkin' and idk why

    • @scratchinminutes9685
      @scratchinminutes9685  Před rokem

      Oh, I've never tried this on cloud variables... Was it running fine on normal variables?

    • @lolopop7899
      @lolopop7899 Před rokem +1

      @@scratchinminutes9685 mine is blinking and i dint even do it on cloud variables

    • @lolopop7899
      @lolopop7899 Před rokem +1

      nvm just forgot to run without screen refresh

  • @AHMEDANDOMARARETHECOOLGUYS
    @AHMEDANDOMARARETHECOOLGUYS Před 2 měsíci

    that is better than griffpatches cool counter

  • @subhamurli7443
    @subhamurli7443 Před rokem +2

    for me the score shows vertically, not horizontally.

    • @scratchinminutes9685
      @scratchinminutes9685  Před rokem +1

      Hmm, maybe you placed the positioning script on the Y value of the [go to x ( ) y ( )] block.

  • @user-yl8ce8sk9c
    @user-yl8ce8sk9c Před 2 lety +3

    😌

  • @vusilaris
    @vusilaris Před rokem +6

    How can I make this counter centered to one side and not the middle ?

    • @scratchinminutes9685
      @scratchinminutes9685  Před rokem +2

      Interesting question! To do that, you can simply replace the x positioning algorithm with (X), as in the function input!

    • @vusilaris
      @vusilaris Před rokem +2

      @@scratchinminutes9685 thanks a lot

    • @chrisepic9800
      @chrisepic9800 Před rokem +1

      @@scratchinminutes9685 Could you please simplify that?

    • @loko2pontos
      @loko2pontos Před rokem +1

      @@chrisepic9800 in the "go to X: Y:" block, put a "x position" in the X: portion of the block intead of the algorithm

    • @burakkaymak4628
      @burakkaymak4628 Před rokem

      @@loko2pontos its not

  • @BlueberryChannelLol
    @BlueberryChannelLol Před rokem +1

    for some reason the numbers got stuck together, any way to fix this I even re-did the code to match the video and still is happening

    • @BlueberryChannelLol
      @BlueberryChannelLol Před rokem +1

      It's like as soon as I get to the hundreds they get stuck for some reason

    • @scratchinminutes9685
      @scratchinminutes9685  Před rokem

      @@BlueberryChannelLol Can you share your project and send me the link?

  • @CodeCraftStudios-sr9tf
    @CodeCraftStudios-sr9tf Před 2 měsíci

    i need help! when i copied your code and tried it, the second digit number keeps deleting then cloning itself again!

  • @francescosaverioconti338

    pls help, after i put the score counter script, my game just lags a ton and becomes unplayble

  • @Roblox_meeeeeee
    @Roblox_meeeeeee Před rokem +2

    mine is to close together and my number won't move so I can't put in in the place I want it

    • @scratchinminutes9685
      @scratchinminutes9685  Před rokem

      If you've followed the tutorial step-by-step, you should be able to adjust the distance between the numbers and the position by changing the inputs for the [Show Score] function we made!

    • @Roblox_meeeeeee
      @Roblox_meeeeeee Před rokem

      @@scratchinminutes9685 okay I will try

  • @UWU2276
    @UWU2276 Před 3 měsíci

    You can make a text engine with that

  • @chasewtir
    @chasewtir Před 3 měsíci

    This is great to bad my game can’t be as good

  • @sumdeathjr
    @sumdeathjr Před 9 měsíci +2

    the score is horizontal, how do I fix this?

    • @scratchinminutes9685
      @scratchinminutes9685  Před 8 měsíci

      Maybe you placed the positioning block in the y section instead of the x section?

  • @Clouds.-.-.
    @Clouds.-.-. Před rokem +1

    How do I hide and show the counter in games?

    • @scratchinminutes9685
      @scratchinminutes9685  Před rokem

      Try relocating the [broadcast (Delete Score)] block to the main script (when green flag is clicked). And then just use the [Show Score] function whenever you want to show your counter!

  • @user-ei3hk7gk9j
    @user-ei3hk7gk9j Před 2 lety +3

  • @josetheyose8369
    @josetheyose8369 Před rokem +2

    How could I make multiple number counters without copying the sprite

    • @scratchinminutes9685
      @scratchinminutes9685  Před 8 měsíci

      You should take the 'Delete Score' broadcast block out of the function and place it before the function block. That way, you can use the function block as many times as you want, with different values and positions each time, after the broadcast block and it will show multiple counters on your screen!

    • @josetheyose8369
      @josetheyose8369 Před 8 měsíci +1

      @@scratchinminutes9685 Thanks so much!

  • @Epic-Chicken_
    @Epic-Chicken_ Před 5 měsíci +1

    I Followed every step and even rewatched the video but this still did not work (The score board showed up but i did not see the option to change the score)

    • @scratchinminutes9685
      @scratchinminutes9685  Před 5 měsíci

      I'm sorry if my tutorial caused you any trouble. I suggest you take a look at the finished project that I made(the link is in the description) and compare it to your own.

  • @davidrayburton
    @davidrayburton Před rokem +2

    Do you know how to make it work for two counters?

    • @scratchinminutes9685
      @scratchinminutes9685  Před rokem +1

      The easiest method would be to use the [Show Score] function twice in the same script with different values and coordinates. Oh, but make sure to move the [broadcast(Delete Score)] block from the [Show Score] function to the main operating script, such as [forever], which contains said function.

    • @davidrayburton
      @davidrayburton Před rokem +1

      @@scratchinminutes9685 thanks! Works now!

  • @ChesterDragon28
    @ChesterDragon28 Před 2 měsíci

    330th sub, i guess.

  • @dogaregood1016
    @dogaregood1016 Před rokem +1

    my digits keep flickering between 1 and 2 after i get to 2 digits

    • @scratchinminutes9685
      @scratchinminutes9685  Před rokem

      Hmm, if you can share your project and send me the link, I might be able to help you!

  • @crocfacePlaugueDoctor
    @crocfacePlaugueDoctor Před rokem +2

    the number won't change, can I get some help, I followed to a T.

  • @supermini2017
    @supermini2017 Před 9 měsíci +1

    Help, my text is like when i put 2, the number show 22, when i put 100, the number show 111. help pls!

    • @scratchinminutes9685
      @scratchinminutes9685  Před 8 měsíci

      I'm guessing something went wrong with the 'change (digit) by (1)' block. Make sure to increase whatever variable you set for the digit index, and you should be good!

  • @BrandonTheOne2
    @BrandonTheOne2 Před 2 měsíci

    How do I make the score go up when a certain thing happens in the game?

  • @andrewman1855
    @andrewman1855 Před rokem +1

    how do how make go at the top of the sprite **

  • @jqualt3r115
    @jqualt3r115 Před rokem +2

    can someone explain the logic of the SBN math?

    • @scratchinminutes9685
      @scratchinminutes9685  Před rokem

      Yeah, it's quite a messy bit of code, but I'll do my best to explain.
      The positioning script places the number sprite on the left of the given center x coordinate (represented by the function variable 'X'). The script has to calculate a position that will make the sprite symmetrically be on the right side of the center X coordinate after it has finished printing. So first, we need the total distance the text sprite will move during the printing. Let's take the number '12345' as an example. Since there are 5 numbers, the sprite needs to move right 4 times, starting as the number '1' and finishing as the number '5'. So the text sprite needs to move [(the length of the number) - 1] times while printing. That makes the total distance [(the space between numbers) * {(the length of the number) - 1}]. Therefore, to make the number positioned at the given coordinate, we need to move the number sprite left by half of that value at the start. And the final script becomes : [(the given starting x coordinate) - 1/2 * ((the space between numbers) * {(the length of the number) - 1})], or [(X) - {(SBN) * {(length of N) - 1} * 1/2}]!

  • @karlburkes6399
    @karlburkes6399 Před 8 měsíci +1

    sooo.... how dose it go up by itself?

    • @scratchinminutes9685
      @scratchinminutes9685  Před 8 měsíci

      This function shows whatever value that is entered in the 'N', so you can increase the variable that is put in the 'N' section of the function block for the score to go up!

  • @GAME_STATION401
    @GAME_STATION401 Před 2 lety +1

    You are fast ):

  • @trustenplayzroblox2128
    @trustenplayzroblox2128 Před rokem +1

    it disappeared after it hit 7 help

  • @dr.dex555
    @dr.dex555 Před 4 měsíci

    my numbers are on top of each other.

  • @ItzSafHere
    @ItzSafHere Před 6 měsíci +1

    how do I unhide and hide it?

  • @ketinushki
    @ketinushki Před rokem +3

    i did it but my 2 number flashed forever

    • @ketinushki
      @ketinushki Před rokem +2

      Is there anyone who can help?

    • @scratchinminutes9685
      @scratchinminutes9685  Před rokem

      @@ketinushki Was it only the number two that was flashing, or was there a problem with the display in general?

    • @ketinushki
      @ketinushki Před rokem +1

      idk?

    • @scratchinminutes9685
      @scratchinminutes9685  Před rokem

      @@ketinushki I suggest checking if the 'run without screen refresh' option is enabled in the [Show Score] function!

  • @LFireOG
    @LFireOG Před 2 měsíci

    my last digit is flashing very fast

  • @supermini2017
    @supermini2017 Před rokem +1

    Anyone knows how to hide and show the numbers?

    • @scratchinminutes9685
      @scratchinminutes9685  Před rokem

      I'm so sorry for the late reply! To answer your question, there are two methods. The first is to stop running the [Show Score] function when you want to hide the counter. Doing so will stop updating the numbers, so you could use the [broadcast (Delete Score)] block to hide the remaining clones. For the second, you could create a variable that stores the show / hide state of the counter. Then take a [when I start as a clone] block, and add [if ] then [show], else [hide] after that. This will allow you to show the numbers when the variable is at the 'show' state and hide them when it's not.

    • @supermini2017
      @supermini2017 Před 9 měsíci

      Sorry for late but thank you!!@@scratchinminutes9685

  • @JiroRobloxHighGames
    @JiroRobloxHighGames Před 2 lety +1

    nice but the number does not look like the same so you need to fix it

    • @scratchinminutes9685
      @scratchinminutes9685  Před 2 lety

      Oh, what do you mean by the numbers not looking the same?

    • @Power-FN
      @Power-FN Před 2 lety +1

      that's your fault not his

    • @Power-FN
      @Power-FN Před 2 lety +1

      @@scratchinminutes9685 im working on it but it keeps deleting the number so it looks weird

    • @scratchinminutes9685
      @scratchinminutes9685  Před 2 lety

      @@Power-FN Did you check the 'run without screen refresh' option in the 'Show Score' block?

  • @warrior3129
    @warrior3129 Před rokem +2

    my score is flashing help

    • @scratchinminutes9685
      @scratchinminutes9685  Před rokem

      Maybe you forgot to check the [run without screen refresh] option on the [show score] function!

  • @casafamiliadossantos2203

    not worked for me :(

  • @yosafthegamer8326
    @yosafthegamer8326 Před 7 měsíci

    My numbers glitch in eachother

  • @MalikRoblox154
    @MalikRoblox154 Před 10 měsíci +2

    I don't work for me :l

    • @scratchinminutes9685
      @scratchinminutes9685  Před 8 měsíci

      I'm sorry if my tutorial caused you any trouble. Could you please tell me more specifically what went wrong?

  • @StickSketch_studios
    @StickSketch_studios Před 10 měsíci +1

    I can make one that has a limit

    • @scratchinminutes9685
      @scratchinminutes9685  Před 8 měsíci

      If you want to know how you can set a limit for your variable, add [if (limit)>], [set (variable) to (limit)]!

  • @saamrezai4938
    @saamrezai4938 Před rokem +1

    SO FAST AND EZ

  • @user-ff5ee4dn4l
    @user-ff5ee4dn4l Před 7 měsíci +1

    hmmmm i dont think so that is real becous i tried it and the numbers are like a 1 digt

    • @scratchinminutes9685
      @scratchinminutes9685  Před 7 měsíci

      Sorry if my tutorial gave you any trouble. If you want, you can click the link in the description to take the code that I made and use it in your own project.

  • @Aleximo2.0
    @Aleximo2.0 Před 4 měsíci

    Sorry nvm it’s ok know

  • @zanikiasmith2672
    @zanikiasmith2672 Před měsícem

    this dont work it shows 99 when it supposed to be 0

  • @NoAccount21326
    @NoAccount21326 Před měsícem

    why not works?

  • @OskariSavage
    @OskariSavage Před 21 dnem

    Did not work for me

  • @kristar.5555
    @kristar.5555 Před 3 měsíci

    lma

  • @GamingUser986
    @GamingUser986 Před rokem +2

    didn't work, i didn't miss anything...

    • @GamingUser986
      @GamingUser986 Před rokem +1

      i'm sorry if im being rude.. :(

    • @scratchinminutes9685
      @scratchinminutes9685  Před 8 měsíci

      Maybe you should check if all the costumes are in order...? I'm not exactly sure what went wrong with your script, sorry!

  • @kristar.5555
    @kristar.5555 Před 3 měsíci

    Sorry lma