How to make Physics in Scratch | Full Tutorial
Вставка
- Опубліковано 11 кві 2021
- Want to create balls or projectiles with realistic physics in Scratch with Gravity, Rolling, Bouncing? Great for Ball Games, Tank Games, Pinball Games, you name it - Learn it all in this simple, fun how-to code Scratch Tutorial.
Want to create realistic bouncing, rolling balls or projectiles with gravity in Scratch (the popular block coding language for those beginners to coding). Learn everything you'll need to know about Scratch Physics for simple yet realistic ball motion, gravity, collision, bounce, friction, momentum and of course rolling down slopes of any angle. In this fun tutorial we create a cute tank that can fire projectiles around a hand drawn level designed in the Scratch paint editor. Learn about bitmap collisions and calculating angles of reflection with a little clever math and coding. We’ll cover everything you need to know in just one amazing episode!
🚀 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
I haven’t used scratch for more than 8 years, but I still really enjoyed this video, good job!
Thanks :)
HAN COMANDGEEK WOT MY WORLDS ARE COLIDING
Wtf, commandgeek? Wtf
Wait what, why is he here oh i get it his a coder :P
Same for me he is legend
“And in May, physics games shot up in popularity on Scratch after a comprehensive and all-around high-quality tutorial released in late April”
3:04
"We don't want our balls to live forever."
-griffpatch
I want mine to :I
We dont?
i do think that balls are rather important to the human civilization..
@@user-zr5fb5bq2t lol
@@user-zr5fb5bq2tthey make a good lollipop 🍭🍭🍭 👅
Every time I watch these Im so impressed with how you easily solve problems that would’ve taken me forever!
This isn’t the series but its nice to see some content!
After struggling with physics in scratch for about 6 years, this tutorial is completely game changing lol
Yes
gosh 6 years
Yah lucky ki game
im 8 and i already know how to make projects :)
im so lucky lucky 😃
The great griffpatch! I still am amazed by your scratch recreation of "getting over it". i never beat it but i had gotten far before.
OH MY GOD THANK YOU SOOO MUCH.. EVEN AFTER THESE MANY MONTHS THIS TUTORIAL HELPED ME LIKE A BLESSINGGGGG THANK YOU SO MUCH GRIFFPATCH!!!
It always amazes me how you can recreate realistic complicated physics simulations using relatively little "simple" math!
Notice how “simple” is in quotes
@@greenbean1576 the Mumbo Jumbo of coding
@@TheGirlAndBoy mumbo jumbo but with a bigger brain
@@TheGirlAndBoy I agree
@@izaanhafid uhm ackshually 🤓 a bigger brain will not increase your IQ
Haven’t been on Scratch for several years now, but I’ve been a huge fan of yours since Paper Minecraft. Your manner of presenting content is so very compelling and the end products are simply marvellous. One of the best YT videos I’ve seen in a while.
When i first watched this video I was so confused about why we did most things, but now I understand it all which just shows how much your videos help.
That's super to hear!
🤿🤿🤿🤿🤿🤿🤿🤿🤿🤿@@griffpatch 🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺
This video made my tank game easy to MAKE! Your tutorials are easy and FUN!
Alternative title in a nutshell : Unfinished tower defense game with bouncy rockets
Lol
wait, THATZ SO TRUE
This made me think of a tower defense game but you played it on a wall.
You can place several mounted turrets on the walls, and using his newest video (the one where it teaches an AI how to pathfind to a certain object), there would be monsters or something that climbed the walls and tried to get to the top of the screen before they got shot down by the towers!
I might finally be able to implement this idea using these two videos...
@@tsesaken sounds pretty fun tbh
This looks more like diep.io than a tower defense game
this madlad introduced multiplayer into scratch
and is making some physics tutorials
*Madlad*
This looks to me like a super simple way of finding surface normals! Definitely using some of these scripts. 👍
I’m a game developer working in C++, but these tutorials are still really fun and helpful. Code translates to code, no matter what language you’re using, so thanks for showing me some new ways to do things!
This is so true though
2 years late but agreed@@yeaglaceshorts546
Me and my small 12 year old mind
Griffpatch: I will teach you my student
Same
huh
I'm 9999999999999999999999999999999 and I still can't understand this,
@@felixalexanderl Woah how are you not dead yet XD
@@felixalexanderl Bonk
God you're the only thing that makes me want to do scratch
I know right.
Same ✔️
Me too!
I'd like to stick with c# and python.
@@greenmaniacs6009 Why are u watching this then XD
sometimes i just watch this for fun
i knew he will do this tutorial.Because I am following his tutorial in scratch and my big fan.This thing was so useful for me.
Griffpatch: Ball Physics Tutorial
Me: ***Visible Happiness***
Thank God, Griffpatch. I wanted to learn something about scratch today!
Thank u griffpatch u'r like my most favorite coder, i have been doing 1 year of coding in scratch and i have been having alot of problems creating physics in scratch but when i learned that you have a yt channel for tutorials i chked it and found this out. I play Getting over it scratch everyday. thanks for creating this tutorial this willhelp me make a cool new game. Thanks again!!
Glad to help!
Hi I Love Scratch, Thank you for being here, I’m learning a lot
Oh man, i search soooo long for something like this :) Thank you griffpatch
Glad I could help!
@@griffpatch your the best my original channel is Bhavneeth’s Coding Lab
@Charlie Arscott I have that same browser extension, he also made that extension on Scratch Addons, I also use dark mode and cat blocks though.
@Charlie Arscott Which one?
Is@@griffpatchGay?
I've been thinking "how to make physics in Scratch" for a long time, but it turned out to be so easy. Thank you!
your games and your tutorials for me are the best because sometimes I think you are the god of scratch, I mean, you are the best who creates scratch games
Yeah I love playing with some Ballz
I'm Vietnamese but I love to watch game tutorials. Especially you. Happy new year full of joy
this is fun to follow griffpatch tutorials!
I get so excited when the code starts to work :)
Me when griffpatch uses the word “calculate” :
Let’s go I ain’t gonna fail math!!!!!
You’re the only UA-camr that actually helped me script! Thank you very much!
Your projects made me want to learn. Real legend
Scratch wouldn't be the same without your tutorials, nor your games. Good work bro
You should have a livestream series where you make a new game on the live stream, so everyone can see your thought process. It would be very cool if you did that!
AGREE!
YEAH!
But Scratchers Should NOT Live Stream:(
it would be so cool
@@sycte949 Why? There's nothing wrong with it if you turn off live chat...
Aye, I have played your 2D Minecraft and a couple other games of yours on scratch, and it's really interesting and fun to play them! Thank you for making something that would be soo hard to make, soo easy to do!
i like how you don't just tell us to copy code, but go into detail on how it works and how to modify it, very nice
my stupid ahh is just copying the code :(
I love all your tutorials! I'm glad that since you're the greatest scratcher you are teaching new scratchers so that they can be like you!
Exactly!
Wow. The quality of your editing, recording and scratch programming has skyrocketed recently! :D Keep up the great work!
thanks, this is amazing, also its super fun to play!
this made my day better
This tutorial is GENIUS!! I want to see how to make a line with physics!
@Tripler dued I was saying the same thing
@Tripler ur pfp be like
GRU SUSSY BAKA
@@stephenmortada ur pfp be like
ALL HAIL THE MIGHTY CONTROLLER
@@qwertyuiop.lkjhgfdsa well its now a cat
wdym a line?
OMG I figured out the same thing that griffpatch did! (the thing about the extra rectangle thats transparent to prevent the glitching) without watching the video! Im such a bad scratcher so at least I have something to be proud of
Dude I love your getting over it in scratch!!!!!
Thank you, I really needed this
Griffpatch, you help so many people in coding ! You are a legend at coding... and you are a legend at learning us new Scratch skills ! You are the only person good enough to help me improve my Scratch skills. You deserve all your suscribers on UA-cam, and all your followers on Scratch ! Long live Griffpatch !!!
All together:" LONG LIFE GRIFFPATCH! LONG LIFE GRIFFPATCH! LONG LIFE GRIFFPATCH! LONG LIFE GRIFFPATCH! "
Totally true
@@ekociao LONG LIFE GRIFFPATCH! LONG LIFE GRIFFPATCH! LONG LIFE GRIFFPATCH! LONG LIFE GRIFFPATCH!
*wait a minute griffpatch has a channel?! I didn't even know this I just played your games for fun*
yahe
You sound tired and simple in this video, That really makes me calm, Keep up the good and calming work
''Balls''
All of that and all of this just to make a cannon but fires big bouncy balls... its a genius
Yes, I always wanted to know how to use physics in scratch. Keep up the great work griffpatch.
Second that
4:23 Came here for learning ball physics, but loved the bouncing effect
I'm Japanese so I use Google Translate for this conversation
I'm always looking at your project. I respect you.
This video is very easy to understand.
I think you are at the top of scratch.
thank you griffpatch. ive managed to implement these Physics into a python project ive ben working on and you it works great!
I haven't used Scratch for a while now, but I just wanted to say, the production quality of these videos is seriously impressive; your explanations kept me engaged, and I'm not even making a project haha - very smart trick to calculate the collision normal, too :)
Wow, thank you!
@@griffpatch No problem, keep it up! :)
Thank you so much! I finished my physics playground thanks to this tutorial!
This was so helpful! Thanks
I love how I've been sweaty tryharding over how to make gravity and you're like "it's simple, just [change y by -0.5]" XD I love it
thanks, griffpatch i actually needed this to make a platformer game where the player turns into a projectile
could u put link to game?
Yay it’s here!
all of your videos are so good i would still have clicking, cats, moving and turning (probably) without!!
Thanks for the vid! It really helps!
Griffpatch has become somewhat of a math UA-camr now
I love it!!
"We don't want our balls to live forever."
But I do.
Then... Forever loop is your friend
@@griffpatch and lag too ;)
@@vevericac3294 lel
@@SumRandomDewd yes laugh eut loud
Then it's a 360 ball limit
I really like your tutorials!
This helped a lot I love your vids
WOW! This is an awesome tutorial and now this will help me in creating projects including cannons and stuff ... well I had one request to add another feature if possible .. U could add a bit of deformation (like sponge balls stretch a bit when thrown on a wall) when the ball touches any of the walls based on it's speed ..
This is amazing and he is the beat at explaining stuff! You can tell he just loves teaching us it’s perfect
I do!
I enjoy your videos very much!( I personally like it even when I am not following a tutorial! )
Awesome, thank you!
I always had trouble to make proper physics and gravity. But this tutorial helped a lot! You did it in Scratch, but it can apply to any programming language, including C++ (The language I'm most fluent). You earned yourself a like and a sub!
just take the integral of the integral of acceleration on the position y of a sprite to get gravity.
You know its good when a professional adult conducts extremely mathematically complex program on a kid-friendly platform
It's like bringing a tank to a Spartan fight.
Yea, this video is more complex that I can process, but is actually an awesome achievement.
I love scratch!! And your teaching too
Thanks this helped me with a little game I was working on
This tutorial helped me make a game in Unity. Never underestimate the power of Scratch
But its scratch how XD?
@@twdneganfan4725 A lot of the concepts from Scratch apply in other languages.
The complete ball physics explained in just one video, what more do you want? :D
Scratch 2.0 Offline Editor to not crash
trigonometry at 3:04
@@vevericac3294 19:22
Omg just what I needed
now this is when i was starting to watching griffpatch's scratch tutorials
Wow your video quality is really improving!
Yay, thank you!
@@griffpatch on my device it lags and i mean LAGS
its like 1 frame per 2 seconds
@@griffpatch i follow you on scratch
this is a list of games i love from you:
geometry dash,
getting over it,
terraria,
hill climb racing,
and more!
@@Jude_VR. so basically 1.5 fps
How do you learn all of these things? I am impressed whilst learning new things each episode, I feel like I’m more invested to your channel more than I am with well- everything else. You make my day, thanks for teaching me and all of us ^_^
Máximos
Isnt griffpatch the creator?
you are the best person I know at doing scratch coding!
Very interesting! easy to understand. You are really great. Thank you very much!
Glad you think so!
I love how you always leave us with new fun ideas to try out, I use this to help teach and you have great ideas to practice with!
congrats on 31k subs
31 sj
i like how he doesn't just say "do this script", instead he explains how it actually works
I REMEMBER YOU FROM YOUR GAMES YOU WERE THE BEST SCRATCH DEVELOPER EVER
Would you ever consider making a mode7 image scaling tutorial?
Can you make a 3d Projection video. I'm taking linear algebra in high school this year, and I have gotten really interested in applying math to programming. I know it's a little more complicated than the video s you typically make on this channel, but it would be amazing if you could make a video like that. I have been working on 3d engines for a while, but I just can't quite get it. Thanks, and I love your content, keep it up!
I think he actually did already!
You are my favorite Scratcher griffpatch
bro I played your's games when I was young but I never find out that you have a youtube channel...... Good Job
Hi even though I have applied the things at 4:05 , The cannon balls still keep on going through some obstacles in the level sprite. Is there anything I can do to solve that?
Could you please do a tutorial on how to create your game "Griffpatch's 3d Lazer tag" (or a similar one)? I'm a huge fan of the technique you used for the 3D effect and yours is by far the most advanced version I could find on Scratch. Unfortunately, noone has uploaded a tutorial (not even for Java) on UA-cam yet. This technique is really cool and I would love to build my own 3D maze :)
There's actually a level editor build into that project :D - I wonder how you turn it on!?!
Oh, didn't know this :) I will try it out later, either way a tutorial would be cool to see in a future UA-cam series. I think your audience isn't afraid of more complex projects. Your explanations are great!
You're an absolute genius
I simply LOVED the project! After this video i'm like this: "I don't know how all that math works, i just know it works" lol
Glad you liked it! :)
I Suggest making a 'tower defense' game tutorial ;)
Warframe has made a tower defence game
There are 0 dislikes let's keep it that way
3 haters ruined it 😭
@@SumRandomDewd yeah :C
93 haters now ☹️
Thank you for the inspiration i definetly think i'll try this out with the ball to enemy collision from lemon shooter!
I was creating a marble run for my son and I faced exactly this issue. He also complained on how the bounce from Scratch just flips the sprite and he was so upset about it. Now I can fix both, thank you
The one dislike be like: I dOnt goT CusToM BloCks He hAS MoDs! >:(
lol haters will say IT'S NOT THAT I'M A TRASH PROGRAMMER JUST THAT GRIFFPATCH HAS HACKS
no u make them
I love so much your follower from Palestine ❤️❤️🇵🇸🇵🇸
and i from Palestine
this really helped me for my game! thank you!
Glad to hear it!
Quick and fun tutorials
Why does mine have a little delay when ball touches level?
im a bit late but i think just adding a wait 0 seconds before should fix it
@@hiyesimhithat literally adds more of a delay
@@Jerraf2p0it limits the delay to 0 so any extra delay wont effect them, hypothetically