Scratch 3.0 Tutorial: Platformer Physics! (made simple)
ฝัง
- เผยแพร่เมื่อ 22 ก.ย. 2024
- Simple Platformer physics! Gravity! Velocity! Yay!
---------------
But WAIT... There’s more! ↓
Subscribe! goo.gl/PTMVby
-------------------------
Download art for games: www.mcguy.org/...
-------------------------
Questions? Concerns? Ideas? Comment down below anything you suggest or would love to know about. I'll be happy to respond, and I read every single comment (although I don't always reply). If your game isn't working or if it's your birthday, feel free to comment.
---------------------
Hey! I'm McGuy! I create programming and other educational videos for people who love to learn. Check out some of my previous videos, and learn how to create games and programs that will shock you, your friends, and your family! Join me on my mission by hitting that subscribe button: goo.gl/PTMVby
If you read this, comment "Only real McGuy fans will know..."
Hey everyone! If you like this series, and learning Scratch online, check out mcguy.org
It's an online education platform where you can take your coding skills to the NEXT LEVEL!
- McGuy
can you make a wall jumping tutorial? I want to add it into this
Also, DON'T FORGET to save your project every few minutes!
Spider 09 Yeah. One Time I was creating a sratch project. It auto saved.
no
Am I the only one that got a like in the replies?
@@editname0063 not anymore
@@MESYETI that's just life man..
You should make a part 2, what explains how to touch the flag, next backdrop, spikes that hurt you, jump pads and portals. (Just a suggestion, you don't have to do it.)
If you would like to add more levels, spikes etc.
Make a new sprite (looking in the way that you want to ofc), Go to the player sprite then: When green flag clicked, Forever loop, If TOUCHING, eg. Flag (or just if touching edge, its a bit more simpler). Inside of the if, then get a brodcast message. then go onto your level sprite and get a when i recive (your message). Then get a switch costume to, eg. Level 2 and a go to position.
I Would reccomend copying the last level you made and just delete everything in it (except for the walls and stuffs).
For the spikes, create a new sprite. And do basically the same thing but add a when green flag clicked. if touching (Name of object, in this case its spike). Then add a Go to starting position.
Hope im not to late!
Tell me if theres any issues or i didnt make something clear, please tell me!
@@neptune.8108 I had actually given up on putting spikes in my game but you made it possible thank you!
@@qlangohr Aye no probs bud!
also wall jumping
@@pinwater3432 And i never said that i fucking COULDNT do it so fuck off
Okay Ima Say It.... THIS HELPS SO MUCH
soooooo true! better then every other tut
thank you so much this helped out a lot because for a long time I have wanted to make a platformer but i could never get any of my physics engines to work and when I tried this tutorial it worked first tryy and now i can make platformers. Tysm
Me: Can I have mario?
Mum: we have mario at home
Mario at home:
I've tried so many tutorials and this is the best one of all. The thing that really helped me is when you went back after to explain again what everything does. You make great tutorials, Keep it up :)
This is a fantastic tutorial, and extremely clearly explained. With the latest version of Scratch there are a great many changes, both with the user interface and under the bonnet. This is one of the clearest and most effective tutorials on this topic since the update, so well done. Subscribed.
lier
This is clean, simple, and well-explained. Well done!
So simple! Helped me out a ton! I have been trying to make a platformer game for ages but couldn’t do it!
finally fix Collision X in my Game Thank you very much!!!
Thank you it realy so helpfull ive littery been searching until i found it thank you thankyou very much😄
I cannot tell you how much this helped me :)!
It helped me too
THANK YOU SO MUCH! I've been looking for a platformer tutorial without wall jump for AGES now!
Simplest platformer physics I've found. Some people make it really complicated.
Thanks!
Bug: You don't have 1 million subs but you need to!
Thank you, this was super useful as I wanted to try something new with scratch. I had tried viewing the insides of other peoples' projects but I couldn't understand them. This was super clear
i tried too but it was not clear but when i watched this tutorial i was clear.
Quick, helpful, and working. Thank you
Thanks a lot. You really helped me out with my presentation
McGuy name Meaning
M-Master
C-Coding
McGuy- Master Coding Guy
10/10 tutorial! Extremely detailed, clear and concise 👍
warning to all, make sure you do it in the same order as he did. I put "change xspeed" and " change yspeed" at the bottom to try and be orderly but that does not work.
there were some bugs and glitches in this but the main problem is that it levitates two pixels of the ground which is hard if your adding lava in your game.
OMG YOU ARE A GENIUS THANK YOU
best scratch tutorial ever
thank you kind man of culture
how do you make the platformer
This is very simple and work thanks!
I think there must be part 2
including different costumes
While touching the green flag
in the platform
I follow this Comment
because a platform game must include different
levels in the
GAMEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
You're the griffpatch 2.0!
Can you leave a link to this project
Awesome tutorial, really clear and concise, well done!
this is sooo helpful. My platformers sucked, because i couldn't figure out x physics, but this helped so much
That was SOOOSOSOOSOSOSOSOS helpful!!!!!
Thanks this helped a lot!
McGuy: "Okay now we're going to make a new variable: speedY."
Me: 𝙄 𝙠𝙞𝙣𝙙𝙖 𝙛𝙞𝙜𝙪𝙧𝙚𝙙 𝙩𝙝𝙖𝙩
Great tutorial! But is there a way to make you point in the direction you're moving in?
omg I remember this, I used this on my first ever game on scratch. I am trying to recreate it. Your coding is sooo amazing! Tysm for the code I will credit you
Can someone tell me why it isn’t working for me?
if jump doesn't work add "set lock to 0" under if touching platform
Thank you for existing McGuy
ima be real with you, not the cleanest code or the most effective but it did the job
Only real McGuy fans will know...
STOP COPY CAT
Bro literally everyone done that 😂
I keep going through the floor. Help.
Its not that, i fus4t always seem to go to one spot.
While going through the floor.
Help.
i figured it out, check your "Y * -1" block probably is "X * -1"
jumping doesn't work for my game
about half way through the video it was susposed to be jumping but it would not I checked all my code and none worked plz help
my speed x bugged out a bit and ended up propelling my character until it said 'infinity'
it happened because my speed x was set to 08 instead of 0.8 at the bottom of the 'if else' statement
I've been coding on scratch for a while and thanks to you I finally know how to make platformer games!
Very good thanks !
thankyou very much
I tried the program my sprite doesn't move when its touching the ground. ONLY if you jump.
this is really good
how to make the platform sprite stay in the same position? cuz when I dragged it accidentally the whole platform changes
thank youuuu
Thanks! This was very helpful!
Glad it helped!
thing doesn’t work, all movement stops when my thing touches the GROUND
My sprite won’t jump but the gravity works. Help please?
thank you sooooo much
why does my guy go into the ground and disable me from jumping
oh i just noticed. I had speedX in a place where i should have speedY
Why my block doesn't stand a little then the ground?
Omg this is so helpful
For some reason whenever i press left or right the x/y goes to 99999999999999+e916262 and caries on going, can anyone tell me why im really stuck
It does not move left and right. Can you please help?
awesome tutorial
Hi!
Everything works but theres a bug where it wont stop going into the corner when i hold a or d so can you help?
Only real McDonalds fans will know...
Wow thanks
10000/10 Vid Mate
This is so helpful and thank you for the tutorial
It is not coming back after touching flag
thanks man
When i jump it teleports instead of glides and it barely goes up at all
Thx its very useful !
What do I do I did everything on this but everyone it touch the side of a block it teleports me back to the start what do I do
I made everyting properly but my project is not working good
Same
My character goes trough walls? Any easy fix?
needed some change but good!
it doesnt work. my sprite falls right thru the platform
i figured it out, check your "Y * -1" block probably is "X * -1"
It's easy but to make the code of hier complexity that's something... Keep up the good work 👍
Wow . I made it . It so cool . Thanks
Only real McGuy fans will know WHAT
90% comments = "only real McGuy fans will know"
10% comments = wow this tutorial is so good
"Whatever Floats Your Boat" XD
'Speed Y' uhhh sir, it's pronounced Speedy
S a n k t h e H e d g e
* You feel like you are right.
* You perceive the opinions of others.
* You decide to roast me, thinking I did not get the joke.
It works really well! But when i try to move the character, it just moves really fast to the side i clicked and doesnt stop.
It also happend to me
@@mrturtio91 No
This isnt working for me. I used wasd (cause im normal) , but arrow keys didnt work too, my player just starts moving one way really slow then stops about a cm left or right where it was before. gravity (jumping not falling .etc) is working though. Anyone help?
THIS IS AWESOME!!!!!!!!!!!!!!!! THANKS!!!!
its working but my sprite goes a bit up and down really fast cna u help me with that?
this dosent work for me i did it 4 times and reloaded the page it still dosent work
my block keeps sinking into the ground
i figured it out, check your "Y * -1" block probably is "X * -1"
Cooooool
your the best!
I want to make a trampoline and I have used this script on my sprite how do I make a trampoline?
I was having so much trouble getting my game to work this is amazing
What is the song in the background named?
mys not working its keeping getting stuck in the ground
wow, just wow
the game is not woring only the sidewise movement is good but it is not jumping
I have one question How to do wall jump?
mine does not say "platform"
WOW U ARE MASTER CODER!!