Scratch Algorithms You NEED To Know!
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!
Enjoy!
1st
Noice
YEET
Do a part 2
thx for the helping
the sprite is called nerd cat
hello shift click lean
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
Fr i was didn't even realise it was supposed to be a change and thought that it was supposed to be set to
Omg! I have been looking for these forever! Thanks for finding/putting them together!
You are very welcome!
Me to...(halfly)
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! :)
No matter how many time I watch this, it is going to stay in my watch later list.
Thanks for such a great information.
Glad it was helpful! :D
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
Good tip!
â@@ShiftClickLearnit's good for some project seasons/sequels or prequels idk it will be really useful, since you don't need to rewrite everything
omg tysm
This is a life saver! I've been making a cookie clicker style game and this helped so much!
Awesome!!!! I'm glad it helped. :D
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
Thank you so much! I've been trying to improve my scratching ability recently and these videos have been life savers đ
Happy to help!
This is so useful! Already liked!
Awesome, thank you!
Thanks for the tips
You are welcome!
I do this all of the time in my projects. Cool to see someone else having figured out the technique as well.
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.
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!
You're very welcome! Glad this helped you out! :D
I just LOVE your videos!
Wow! Thank you!
I'm already subscribed and this is why! thank you so much
this channel is underrated, and great video!
I appreciate that!
Perfect! I needed to watch this video to polish off my Scratch Games; thank you so much!!
You're so welcome! :D
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
Thank you so much! :D
@@ShiftClickLearn You're welcome! And I must say that I am rather jealous
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
Thanks!
The size one would be great for OS startups (with the logo appearing). Combine it with ghost and you get a great effect.
OOh yeah!
this made my game so much better looking!it helps
I am glad it helps! :D
This video really helped!! TYSM !đ
That was exacly what I was schearing to make my games on scratch
This is awesome! also yes i am the person who made The Explorer: Tower Wars
Cool! Thanks!
@@ShiftClickLearn Fun fact: its my most viewed project ever so far
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.đ
That's awesome! Thanks for the advice. :D
why is no one replying to replies
Every scratcher should watch this
:D Wow...Thank you!
True
So that would be over 3 million people (I think )
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!!
Awesome tutorial!I can see that your channel is slowly growing...
Thanks!
Thanks I needed this
You are welcome!
thanks! just finished making my intro with this!
Bro this helped so much. Ty bro
Wow thank you so much i needed these kind of coding in my games!
You are very welcome!
I basically use them in all my games now. It polishes up my projects by alot, especially the buttons.
I do too! :D
This is very helpful for my games, thanks!
You are welcome! :D
Used to think this isn't needed but I just realised that I need it
Wow! These scripts help so much :D
Very useful video I will definitely come back to it
Oh I don't know about this! So helpful!!!
Yay! I'm glad I could help!
this is gonna help a lot, thanks . o .
You are very welcome!
These are quite useful!
Glad you like them!
/ 2 In the size one is *PERFECT* for a clicker game
Oh cool
Thanks for teaching me this, I will use this in my game called "Orange Man" to make the buttons more smooth
You are welcome! That's awesome!
Ooo thank you for making thos vid i needed these scripts
I love your vids!
Thank you Marcus!
Thank you! This will help me make my game better! đ
No problem!
@@ShiftClickLearn đđđ
Wow!!! That's so cool
so cool, such a big help.
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.
Ok, thanks for the tip!
Thank you! (I am gonna to do my scratch homework w/ these tips lol) :)
You're welcome, good luck!! :)
has anyone counted how many times smooth was said in the video xD
LOL
@@ShiftClickLearn I have! Its 12
Thanks i needed this vid
You are welcome!
Thanks for the tutorial it really helped me for my eating project
and i sub u
I hope it tasted good!
ALSO THANKS FOR THE SUB!!!!!!!!! đđđ
I like this, I may need to backpack these one day!
Yeah!
i really needed the middle algorithm! thanks alot
You're welcome!
i used these codes and it really helps my project :D
omg thx! this help make me my game!
You are very welcome!
I like how the sprite was called nerd cat XD
Thanks XD
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 !
I created a clicker game with the scripts all because of you :)
For smooth movement you could also do
Point towards (mouse pointer)
Move (distance to mouse pointer / (any number)
That works pretty good as well!
Thanks!
No problem!
Thanks so so much for the tilt algorithm
No problem. :D
this is so helpfull this has helped me so much
Yay!
This guy just really likes the word 'Smooooth!'. But anyway, nice tutorial, very helpful!
Thank you!
You are welcome!
So useful for polishing!
Definitely!
Thanks, very useful!
You are welcome!
I keep on coming back it helps so much! Thanks!
smOOOOoooOOoootH
You're welcome, I'm glad it helped!
Also yes, smoOOOOOOOOOOOOOOth
@@ShiftClickLearn yessir
Wow tysm!
No problem!!
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
I think the third one after time (about 9 billion years) would get jittery and eventually stop. Just speculation.
Yeah whenever it maxes out... have fun waiting for it to happen! :p
Nice!
Thanks!
Good information thanks!
No problem!
You're like the family-friendly, new FUNUT. Great going :)
Thank you! I'm glad someone noticed...I really want my channel to be a place where anyone can come to learn! :D
Yea funut stopped uploading a lot so Iâm glad heâs the funut 2.0
@@ShiftClickLearn my parents say theres some bad stuff on funuts channel but since youre a kid m parents allow me to watch youre videos
NOT REALLY
@@highpheonixstudios1621 FUNUT JUST TALKS REALLY QUICK AND FAST
yes. Super _S M O O T H_
s m o o t h
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!
Yes!!! I use that effect all the time- it will smoothly turn/ change its size back to what you put in! :D
@@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)
So cool!
Thank You sooo much!!
You're welcome!
Very helpful!!
Awesome. :D
Thank you! Now I can make a god title screen with the first or last one
You are welcome!
Heres a tip for OS developers!
the 1st one can be used for transitions replacing change size by move x to, i think
Good tip!
for the second algorithm, you could instead do point towards mouse pointer, and then move (distance/5) steps.
BROOOOOOOOOOOOOOOOOOOO THATS SICK
damn, that was smooooooth
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.
That is a good idea!
Thank u: Much enjey from nice algorithms soooo smooth now my clicker game is better!
You are welcome!
I used the point in direction algorithm, but I made it Y and it still works.
it also works for x or maybe size
Nice!!
You heard him, S M O O T H
yup
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
thanks alot!
You're welcome!
the last one is soooooooo good for clickers i put that in my backpack and kept goingđ„
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.
Yeah, I use that one more- I wish I put that in the video! Thanks for the tip! :D
underrated CZcamsr
can you teach raycasting algorithms
Maybe! Good idea!
this is helpful!
I'm so glad!
Bro the first one is so good
Thanksssssssss
you got a well deserved like
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 )
That is a good way to do it as well! :D
for some reason when i tried doing the tilt one it just leans to one side instead of tilting side to side
Thanks
You are very welcome!