Это видео недоступно.
Сожалеем об этом.
How to make Physics in Scratch | Full Tutorial
HTML-код
- Опубликовано: 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.aca... 👈
😺 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
Same for me he is legend
:0 hi commandgeek (remember me?)
“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..
@@lightning_rift lol
@@lightning_riftthey 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.
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
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.
OH MY GOD THANK YOU SOOO MUCH.. EVEN AFTER THESE MANY MONTHS THIS TUTORIAL HELPED ME LIKE A BLESSINGGGGG THANK YOU SO MUCH GRIFFPATCH!!!
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 madlad introduced multiplayer into scratch
and is making some physics tutorials
*Madlad*
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
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 :(
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
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
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
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.
bro I played your's games when I was young but I never find out that you have a youtube channel...... Good Job
Griffpatch: Ball Physics Tutorial
Me: ***Visible Happiness***
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?
Griffpatch in most of his videos: *deletes the cat*
Griffpatch in this video: *repurposes one of the cat's costumes as a tank*
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.
Me when griffpatch uses the word “calculate” :
Let’s go I ain’t gonna fail math!!!!!
Thank God, Griffpatch. I wanted to learn something about scratch today!
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.
I REMEMBER YOU FROM YOUR GAMES YOU WERE THE BEST SCRATCH DEVELOPER EVER
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 RUclips, 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!
Scratch wouldn't be the same without your tutorials, nor your games. Good work bro
i like how he doesn't just say "do this script", instead he explains how it actually works
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
I've been thinking "how to make physics in Scratch" for a long time, but it turned out to be so easy. Thank you!
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...
Griffpatch is the Mumbo Jumbo of scratch I swear to god how does he know this much
You sound tired and simple in this video, That really makes me calm, Keep up the good and calming work
''Balls''
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?
*wait a minute griffpatch has a channel?! I didn't even know this I just played your games for fun*
yahe
sometimes i just watch this for fun
I'm Vietnamese but I love to watch game tutorials. Especially you. Happy new year full of joy
Yes, I always wanted to know how to use physics in scratch. Keep up the great work griffpatch.
Second that
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
This looks to me like a super simple way of finding surface normals! Definitely using some of these scripts. 👍
3:08 we dont want our balls to live forever XD
this is fun to follow griffpatch tutorials!
I get so excited when the code starts to work :)
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!
Omg I finally found the best Scratch Creator channel
all of your videos are so good i would still have clicking, cats, moving and turning (probably) without!!
Griffpatch has become somewhat of a math RUclipsr now
I love it!!
4:23 Came here for learning ball physics, but loved the bouncing effect
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!
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! :)
Wow. The quality of your editing, recording and scratch programming has skyrocketed recently! :D Keep up the great work!
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! :)
2 hours and 1 tutorial gets me 1: some passed time 2: a bouncy ball shooter thing and 3: a bouncy ball shooter thing that i have not made a plan for yet so i will contemplate why i did this in the first place
:>
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.
"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
thanks, griffpatch i actually needed this to make a platformer game where the player turns into a projectile
could u put link to game?
This video made my tank game easy to MAKE! Your tutorials are easy and FUN!
me: **cant make a ping pong ball bounce of the paddle**
griffpatch: i am a billion multiverses ahead of you
Thank you so much! I finished my physics playground thanks to this tutorial!
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
Thanks! Physics are gonna be a good part of my ping-pong game on scratch
“We don’t want our balls to live forever”
“We want to create balls that can bounce”
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 ..
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
In the beginning all he could have done is "if on edge, bounce"
**pog**
I loved your paper minecraft, I know I'd never be a good scratcher like you
This is amazing and he is the beat at explaining stuff! You can tell he just loves teaching us it’s perfect
I do!
Yay it’s here!
You’re the only RUclipsr that actually helped me script! Thank you very much!
I was working on a battle tanks game and wanted to make a ricochet bullet that would work on walls with 45-multiple degrees. I kind of already had an idea of how it would work, but I needed an equation, so I listed the direction of the bullet before and after hitting the wall for several different degrees. Eventually, I ended up with several equations that required a LOT of if-thens. Turns out there was a MUCH easier way to do it, LOL.
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?
Would you ever consider making a mode7 image scaling tutorial?
This dude is a scratch legend. Your amazing Dude
true
17:02
I'm really glad you finally mentioned that, I thought I did something wrong
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!
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?
Nice Tutorial! I think this is my favourite.
Bug: Your normal costume might slow down the project
Fix: Add a Broadcast message after the ball tick in the forever loop, add the message receiver and wait 0 seconds then check if not costume=ball then stop all to stop it crashing
Griffpatch is going to teach me more math than school
Ikr
congrats on 31k subs
31 sj
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!
never thought scratch can be that complicated lol. good video!
The one-time math is too hard for even griffpatch 11:44
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
There are 0 dislikes let's keep it that way
3 haters ruined it 😭
@@SumRandomDewd yeah :C
93 haters now ☹️
All of that and all of this just to make a cannon but fires big bouncy balls... its a genius
now this is when i was starting to watching griffpatch's scratch tutorials
am i being dumb, or would ball to ball physics just involve adding an "and touching color red"(color of ball) to the if block which checks to see if the ball is touching level?
also im surprised you used the dot method and lots of physics yet you didn't say sine or cosine lol
Yeah, ball to ball collisions are trickier than that I'm afraid.
@@griffpatch yea, i tried it out and they started to teleport and some got launched into walls
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 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
Hi I Love Scratch, Thank you for being here, I’m learning a lot
I love so much your follower from Palestine ❤️❤️🇵🇸🇵🇸
and i from Palestine
I Suggest making a 'tower defense' game tutorial ;)
Warframe has made a tower defence game
Griffpatch: So, why isn't this the end of the video?
Me: Cuz we are 5 minutes in and there are 16 minutes left
You are my favorite Scratcher griffpatch
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 RUclips 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 RUclips series. I think your audience isn't afraid of more complex projects. Your explanations are great!
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!
bro how long have u been an absolute genius. in 2036 you will be telling us how to build and working time machine!!!
you are the best person I know at doing scratch coding!