Scratch Algorithms You NEED To Know!

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 21. 07. 2024
  • In this Scratch tutorial, I show a few algorithms that you need to know about. These algorithms are perfect for creating smooth and polished games!
    Thanks for watching! Please hit the like button and subscribe for future Scratch tutorials!
    🔗 LINKS:
    ▶ Scratch Profile Page:
    scratch.mit.edu/users/ShiftCl...
    ▶ Scrolling Platformer (Night Ninja)
    ‱ Scratch | Scrolling Pl...
    ▶ Cat Clicker tutorial:
    ‱ Scratch | Cat Clicker ...
    ▶ Crossy Road tutorial:
    ‱ Scratch | Making a Cro...
    ▶ Tower Defense tutorial:
    ‱ Scratch | Making a Tow...
    ▶ Fish Game tutorial:
    ‱ Scratch Tutorial | Hun...
    ▶ Scrolling Platformer tutorial:
    ‱ Scratch Tutorial | Eas...
    ▶ Combat Based Platformer tutorial:
    ‱ Scratch | Making a Com...
    ▶ Space Shooter game tutorial:
    ‱ Scratch Space Shooter ...
    ▶ How-to tutorials:
    ‱ Scratch | How-To Tutor...
    😾 Get Scratch Addons:
    scratchaddons.com/
    ❗ DISCLAIMER: This video is family-friendly! Hostile and/or rude comments will not be tolerated!

Komentáƙe • 480

  • @ShiftClickLearn
    @ShiftClickLearn  Pƙed 3 lety +51

    Enjoy!

  • @jamespennington6428
    @jamespennington6428 Pƙed rokem +31

    I was making a title and accidentally used, “set x to” instead of “change x by” and that made it so much better with a constantly changing variable being my target value

    • @FreddyFazbearYo
      @FreddyFazbearYo Pƙed rokem +1

      Fr i was didn't even realise it was supposed to be a change and thought that it was supposed to be set to

  • @amonke5983
    @amonke5983 Pƙed 3 lety +31

    Omg! I have been looking for these forever! Thanks for finding/putting them together!

  • @ZachoSchoolAccount
    @ZachoSchoolAccount Pƙed rokem +2

    I've always been using variables like Size speed and all that, and now I realise how much of a better way this is! Great information! :)

  • @DosBros531
    @DosBros531 Pƙed rokem +4

    No matter how many time I watch this, it is going to stay in my watch later list.
    Thanks for such a great information.

  • @imnot4chriss
    @imnot4chriss Pƙed 2 lety +8

    ANOTHER NICE TIP
    If you click "Backpack" on the bottom of your screen you can view a backpack
    you can drag anything into it, Scripts, Costumes, Sprites, Sounds
    And it will always be there, no matter what, wether you go to another project,
    it will ALWAYS stay there, until you delete it ofcourse, and you can take it out and use it when you need it

    • @ShiftClickLearn
      @ShiftClickLearn  Pƙed 2 lety +3

      Good tip!

    • @CHA-1Gamin
      @CHA-1Gamin Pƙed rokem

      ​@@ShiftClickLearnit's good for some project seasons/sequels or prequels idk it will be really useful, since you don't need to rewrite everything

    • @Lol-mr8hb
      @Lol-mr8hb Pƙed 4 měsĂ­ci

      omg tysm

  • @sebby_y
    @sebby_y Pƙed rokem +6

    This is a life saver! I've been making a cookie clicker style game and this helped so much!

  • @taluladoesthehulainhawaii9012

    Thank you so much! My games look a lot better now, also all of your other tutorials are really helpful so you got a sub from me

  • @thetoaster1643
    @thetoaster1643 Pƙed 3 lety +2

    Thank you so much! I've been trying to improve my scratching ability recently and these videos have been life savers 😅

  • @gang-yt
    @gang-yt Pƙed 2 lety +5

    This is so useful! Already liked!

  • @magneto42brickfilms25
    @magneto42brickfilms25 Pƙed 3 lety +5

    Thanks for the tips

  • @harasen_haras5
    @harasen_haras5 Pƙed 2 lety +1

    I do this all of the time in my projects. Cool to see someone else having figured out the technique as well.

    • @harasen_haras5
      @harasen_haras5 Pƙed 2 lety +1

      If you flip the location of the object and the location of the spot it's moving towards inside the script, you can make it move with an accelerating speed. Sometimes it needs extra tweaks to work as it should. Really depends on its usage.

  • @luv_yellow
    @luv_yellow Pƙed 2 lety +1

    OH MY SCRATCH YOU'RE A GENIUS!!! With this video you just made, I can up my level to creating Scratch games! Thanks SO VERY MUCH! You've earned a new subscriber!

  • @bondaboo
    @bondaboo Pƙed 3 lety +5

    I just LOVE your videos!

  • @myfertriedcoding
    @myfertriedcoding Pƙed rokem

    I'm already subscribed and this is why! thank you so much

  • @Slinx92OLD
    @Slinx92OLD Pƙed 2 lety +3

    this channel is underrated, and great video!

  • @thewyattclassroom
    @thewyattclassroom Pƙed rokem +1

    Perfect! I needed to watch this video to polish off my Scratch Games; thank you so much!!

  • @TheHippyHoppyHippo
    @TheHippyHoppyHippo Pƙed 2 lety +2

    The video is so well made and you have the best voice and microphone
    And the title and thumbnail also makes the video attract more viewers a lot more

  • @Cake14797
    @Cake14797 Pƙed 3 lety +1

    A cool algorithm just for cleaning up stuff is: ( this is for movement scripts that uses the move block )
    Move X(your amount of steps) times X(your key) so it just makes it so that you can move while clicking a key and it also smooths up your code and saves assets

  • @QuantumScratcher
    @QuantumScratcher Pƙed 2 lety +3

    The size one would be great for OS startups (with the logo appearing). Combine it with ghost and you get a great effect.

  • @itssandygotcha7406
    @itssandygotcha7406 Pƙed 2 lety +1

    this made my game so much better looking!it helps

  • @Lol-mr8hb
    @Lol-mr8hb Pƙed 4 měsĂ­ci

    This video really helped!! TYSM !😊

  • @yaboys69
    @yaboys69 Pƙed rokem +2

    That was exacly what I was schearing to make my games on scratch

  • @DaCatOfPizza
    @DaCatOfPizza Pƙed 3 lety +2

    This is awesome! also yes i am the person who made The Explorer: Tower Wars

  • @SupTwoWater
    @SupTwoWater Pƙed 2 lety +3

    I came back for this video like 10 times while making my projects EVERY TIME. Thanks for this video. I have to point out that your videos are really fast-paced with a lot of cuts and editing. I would recommend you to slow down your tutorial videos like Griffpatch.😁

    • @ShiftClickLearn
      @ShiftClickLearn  Pƙed rokem +1

      That's awesome! Thanks for the advice. :D

    • @Lol-mr8hb
      @Lol-mr8hb Pƙed 4 měsĂ­ci

      why is no one replying to replies

  • @harshadagorey
    @harshadagorey Pƙed 3 lety +4

    Every scratcher should watch this

  • @randy054
    @randy054 Pƙed rokem

    This was so useful I am making a clicker game and I wanted a start menu and the 2nd one helped me polish it! TYSM!!

  • @monkeycomet
    @monkeycomet Pƙed 2 lety +2

    Awesome tutorial!I can see that your channel is slowly growing...

  • @MilkLord_1
    @MilkLord_1 Pƙed 3 lety +3

    Thanks I needed this

  • @22v220
    @22v220 Pƙed rokem +1

    thanks! just finished making my intro with this!

  • @TurtL689
    @TurtL689 Pƙed měsĂ­cem +1

    Bro this helped so much. Ty bro

  • @wyattmaktrav
    @wyattmaktrav Pƙed 2 lety +2

    Wow thank you so much i needed these kind of coding in my games!

  • @afantashoon6969
    @afantashoon6969 Pƙed rokem +1

    I basically use them in all my games now. It polishes up my projects by alot, especially the buttons.

  • @RonicTheEgg
    @RonicTheEgg Pƙed 2 lety +2

    This is very helpful for my games, thanks!

  • @goobertnelius
    @goobertnelius Pƙed 2 lety +1

    Used to think this isn't needed but I just realised that I need it

  • @Littlzzzxxd
    @Littlzzzxxd Pƙed rokem +1

    Wow! These scripts help so much :D

  • @Md_9000
    @Md_9000 Pƙed rokem

    Very useful video I will definitely come back to it

  • @hainamlion
    @hainamlion Pƙed 3 lety +2

    Oh I don't know about this! So helpful!!!

  • @Giolaboman
    @Giolaboman Pƙed 2 lety +3

    this is gonna help a lot, thanks . o .

  • @kos256
    @kos256 Pƙed 2 lety +4

    These are quite useful!

  • @monicadees3612
    @monicadees3612 Pƙed 2 lety +4

    / 2 In the size one is *PERFECT* for a clicker game

  • @blankpaper5093
    @blankpaper5093 Pƙed 2 lety +1

    Thanks for teaching me this, I will use this in my game called "Orange Man" to make the buttons more smooth

  • @ItsTimber
    @ItsTimber Pƙed rokem

    Ooo thank you for making thos vid i needed these scripts

  • @itsactuallymarcus
    @itsactuallymarcus Pƙed 3 lety +3

    I love your vids!

  • @EquaTechnologies
    @EquaTechnologies Pƙed 2 lety +2

    Thank you! This will help me make my game better! 😀

  • @armybrain
    @armybrain Pƙed 2 lety +2

    Wow!!! That's so cool

  • @lograystudios
    @lograystudios Pƙed rokem

    so cool, such a big help.

  • @InverseOfficial
    @InverseOfficial Pƙed 2 lety +3

    1:25 divided by two is unnecessarily slow in this case. Always use x0.5 instead since multiplication only takes ~10 clock cycles to perform while division can take upwards of 100.

  • @3e33yipchingshunyip7
    @3e33yipchingshunyip7 Pƙed rokem +1

    Thank you! (I am gonna to do my scratch homework w/ these tips lol) :)

  • @noobrobloxdev9690
    @noobrobloxdev9690 Pƙed 2 lety +7

    has anyone counted how many times smooth was said in the video xD

  • @Krys.s
    @Krys.s Pƙed 2 lety +2

    Thanks i needed this vid

  • @aqeefdayout
    @aqeefdayout Pƙed 3 lety +3

    Thanks for the tutorial it really helped me for my eating project

    • @aqeefdayout
      @aqeefdayout Pƙed 3 lety +2

      and i sub u

    • @ShiftClickLearn
      @ShiftClickLearn  Pƙed 3 lety +2

      I hope it tasted good!
      ALSO THANKS FOR THE SUB!!!!!!!!! 😁😁😁

  • @SIG7Pro
    @SIG7Pro Pƙed 2 lety +1

    I like this, I may need to backpack these one day!

  • @apo11ocat
    @apo11ocat Pƙed 2 lety +1

    i really needed the middle algorithm! thanks alot

  • @hermanzainal2782
    @hermanzainal2782 Pƙed 2 lety +2

    i used these codes and it really helps my project :D

  • @kimeei44
    @kimeei44 Pƙed 2 lety +2

    omg thx! this help make me my game!

  • @errordetected8492
    @errordetected8492 Pƙed 2 lety +4

    I like how the sprite was called nerd cat XD

  • @robinbyr976
    @robinbyr976 Pƙed rokem

    To the mouse pointer algorithms you can replace the go to x, y for a change x and a change y and remove the "+" operator !
    thanks for reading !

  • @cathymyers8286
    @cathymyers8286 Pƙed rokem

    I created a clicker game with the scripts all because of you :)

  • @tshark9158
    @tshark9158 Pƙed rokem +1

    For smooth movement you could also do
    Point towards (mouse pointer)
    Move (distance to mouse pointer / (any number)

  • @DJruslan4ic
    @DJruslan4ic Pƙed rokem +2

    Thanks!

  • @Sammy_G777
    @Sammy_G777 Pƙed 2 lety +1

    Thanks so so much for the tilt algorithm

  • @Zippy_boys
    @Zippy_boys Pƙed 2 lety +1

    this is so helpfull this has helped me so much

  • @anushthegreat6542
    @anushthegreat6542 Pƙed 2 lety +3

    This guy just really likes the word 'Smooooth!'. But anyway, nice tutorial, very helpful!

  • @razkanaz
    @razkanaz Pƙed 2 lety +3

    Thank you!

  • @Phillip_Anatra
    @Phillip_Anatra Pƙed 3 lety +1

    So useful for polishing!

  • @therayvenn3482
    @therayvenn3482 Pƙed 2 lety +1

    Thanks, very useful!

  • @minecrafterisaac0746
    @minecrafterisaac0746 Pƙed 2 lety +3

    I keep on coming back it helps so much! Thanks!
    smOOOOoooOOoootH

  • @KY_GD
    @KY_GD Pƙed rokem +1

    Wow tysm!

  • @lowfidelity8074
    @lowfidelity8074 Pƙed rokem

    i tried making the spinny key
    and i went learning animation to animate it and realize you can doi it this way
    great tutorial lol

  • @beeman9229
    @beeman9229 Pƙed 2 lety +4

    I think the third one after time (about 9 billion years) would get jittery and eventually stop. Just speculation.

    • @ShiftClickLearn
      @ShiftClickLearn  Pƙed 2 lety +1

      Yeah whenever it maxes out... have fun waiting for it to happen! :p

  • @thescratchsavy1587
    @thescratchsavy1587 Pƙed 3 lety +3

    Nice!

  • @deejay_g2gproductions838
    @deejay_g2gproductions838 Pƙed rokem +1

    Good information thanks!

  • @CoolScratcher
    @CoolScratcher Pƙed 3 lety +4

    You're like the family-friendly, new FUNUT. Great going :)

    • @ShiftClickLearn
      @ShiftClickLearn  Pƙed 3 lety +2

      Thank you! I'm glad someone noticed...I really want my channel to be a place where anyone can come to learn! :D

    • @amokaanimationz240
      @amokaanimationz240 Pƙed 3 lety

      Yea funut stopped uploading a lot so I’m glad he’s the funut 2.0

    • @highpheonixstudios1621
      @highpheonixstudios1621 Pƙed 2 lety

      @@ShiftClickLearn my parents say theres some bad stuff on funuts channel but since youre a kid m parents allow me to watch youre videos

    • @jeditz8
      @jeditz8 Pƙed 2 lety

      NOT REALLY

    • @jeditz8
      @jeditz8 Pƙed 2 lety

      @@highpheonixstudios1621 FUNUT JUST TALKS REALLY QUICK AND FAST

  • @comradepelusa
    @comradepelusa Pƙed 2 lety +8

    yes. Super _S M O O T H_

  • @greengreenanimations
    @greengreenanimations Pƙed 2 lety +1

    Ive learned something from this video that if you put ( set size to (0%) ) or ( point in direction (0) ) on the start of the first algorithm you will see a cool start effect!

    • @ShiftClickLearn
      @ShiftClickLearn  Pƙed 2 lety

      Yes!!! I use that effect all the time- it will smoothly turn/ change its size back to what you put in! :D

    • @greengreenanimations
      @greengreenanimations Pƙed 2 lety

      @@ShiftClickLearn i just got It randomly putting 0% in the size number and yeah that's real (i used that effect to my new clicker too)

  • @Kr3pi_
    @Kr3pi_ Pƙed 2 lety +1

    So cool!

  • @samuelyeokaikiat4130
    @samuelyeokaikiat4130 Pƙed 2 lety +1

    Thank You sooo much!!

  • @ZER0jackson
    @ZER0jackson Pƙed rokem +1

    Very helpful!!

  • @ColdBlaze_lol
    @ColdBlaze_lol Pƙed 2 lety +2

    Thank you! Now I can make a god title screen with the first or last one

  • @MandraMockups
    @MandraMockups Pƙed 2 lety +1

    Heres a tip for OS developers!
    the 1st one can be used for transitions replacing change size by move x to, i think

  • @Blue_Pumpkin_
    @Blue_Pumpkin_ Pƙed rokem

    for the second algorithm, you could instead do point towards mouse pointer, and then move (distance/5) steps.

  • @MaximchikPlayz
    @MaximchikPlayz Pƙed měsĂ­cem

    BROOOOOOOOOOOOOOOOOOOO THATS SICK

  • @uncensored393
    @uncensored393 Pƙed rokem

    damn, that was smooooooth

  • @seth-blank
    @seth-blank Pƙed 2 lety

    Hey loved the vid. But do you think you could maybe explain what's happening in this? I'm trying to learn scratch and be able to make stuff like this without having to look up it on YT.

  • @shadface3292
    @shadface3292 Pƙed 2 lety +2

    Thank u: Much enjey from nice algorithms soooo smooth now my clicker game is better!

  • @bubblet3a_
    @bubblet3a_ Pƙed rokem +1

    I used the point in direction algorithm, but I made it Y and it still works.

  • @RaNdOm3.1415
    @RaNdOm3.1415 Pƙed 2 lety +4

    You heard him, S M O O T H

  • @rapper_mario
    @rapper_mario Pƙed 3 měsĂ­ci

    for the second one you could do a simpler script by doing
    when flag clicked
    forever
    point towards mouse-pointer
    move ((distance to mouse pointer /10)) steps

  • @stevekong1448
    @stevekong1448 Pƙed 3 lety +2

    thanks alot!

  • @danstevers
    @danstevers Pƙed rokem +1

    the last one is soooooooo good for clickers i put that in my backpack and kept goingđŸ„‡

  • @beeman9229
    @beeman9229 Pƙed 2 lety +2

    Another way to do the second one is
    forever
    point to mouse pointer
    move ( distance to mouse pointer / a)
    Replace a with something like 10 or 15. The bigger value a is, the slower it is.

    • @ShiftClickLearn
      @ShiftClickLearn  Pƙed 2 lety

      Yeah, I use that one more- I wish I put that in the video! Thanks for the tip! :D

  • @MaxVR_
    @MaxVR_ Pƙed 3 měsĂ­ci

    underrated CZcamsr

  • @althaboss3925
    @althaboss3925 Pƙed 3 lety +3

    can you teach raycasting algorithms

  • @hermanzainal2782
    @hermanzainal2782 Pƙed 2 lety +3

    this is helpful!

  • @breadguyy
    @breadguyy Pƙed 2 lety +2

    Bro the first one is so good

  • @dederter3098
    @dederter3098 Pƙed rokem +1

    you got a well deserved like

  • @angelx9124
    @angelx9124 Pƙed 2 lety +2

    algorithm 2 could be excused for
    when green flag clicked,
    set rotation style to dont rotate
    |forever|
    | point to mouse
    | move ( ( distance to mouse pointer ) / speed you want )

  • @Hyehehehehehehe
    @Hyehehehehehehe Pƙed rokem

    for some reason when i tried doing the tilt one it just leans to one side instead of tilting side to side

  • @codingchicken7545
    @codingchicken7545 Pƙed 3 lety +3

    Thanks