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..."

ความคิดเห็น • 495

  • @mcguy1234
    @mcguy1234  3 ปีที่แล้ว +7

    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

    • @PocketGames99
      @PocketGames99 2 ปีที่แล้ว

      can you make a wall jumping tutorial? I want to add it into this

  • @Rudy01B
    @Rudy01B 4 ปีที่แล้ว +67

    Also, DON'T FORGET to save your project every few minutes!

    • @editname0063
      @editname0063 4 ปีที่แล้ว +1

      Spider 09 Yeah. One Time I was creating a sratch project. It auto saved.

    • @MESYETI
      @MESYETI 4 ปีที่แล้ว +2

      no

    • @editname0063
      @editname0063 4 ปีที่แล้ว +2

      Am I the only one that got a like in the replies?

    • @MESYETI
      @MESYETI 4 ปีที่แล้ว +1

      @@editname0063 not anymore

    • @editname0063
      @editname0063 4 ปีที่แล้ว +1

      @@MESYETI that's just life man..

  • @grayscale8972
    @grayscale8972 4 ปีที่แล้ว +64

    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.)

    • @neptune.8108
      @neptune.8108 4 ปีที่แล้ว +9

      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!

    • @qlangohr
      @qlangohr 4 ปีที่แล้ว

      @@neptune.8108 I had actually given up on putting spikes in my game but you made it possible thank you!

    • @neptune.8108
      @neptune.8108 4 ปีที่แล้ว

      @@qlangohr Aye no probs bud!

    • @wowyok4507
      @wowyok4507 3 ปีที่แล้ว

      also wall jumping

    • @grayscale8972
      @grayscale8972 3 ปีที่แล้ว

      @@pinwater3432 And i never said that i fucking COULDNT do it so fuck off

  • @slami4868
    @slami4868 3 ปีที่แล้ว +11

    Okay Ima Say It.... THIS HELPS SO MUCH

    • @judeposey2395
      @judeposey2395 3 ปีที่แล้ว

      soooooo true! better then every other tut

  • @MarvelousMemerMan
    @MarvelousMemerMan ปีที่แล้ว +1

    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

  • @MESYETI
    @MESYETI 4 ปีที่แล้ว +13

    Me: Can I have mario?
    Mum: we have mario at home
    Mario at home:

  • @peterm4693
    @peterm4693 3 ปีที่แล้ว +2

    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 :)

  • @TheTechTrain
    @TheTechTrain 5 ปีที่แล้ว +1

    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.

  • @taokodr
    @taokodr 4 ปีที่แล้ว +2

    This is clean, simple, and well-explained. Well done!

  • @7liner
    @7liner 3 ปีที่แล้ว +3

    So simple! Helped me out a ton! I have been trying to make a platformer game for ages but couldn’t do it!

  • @DaWulffy
    @DaWulffy 2 ปีที่แล้ว +1

    finally fix Collision X in my Game Thank you very much!!!

  • @DanielandDinoTheDog
    @DanielandDinoTheDog 2 ปีที่แล้ว +1

    Thank you it realy so helpfull ive littery been searching until i found it thank you thankyou very much😄

  • @egglmao
    @egglmao 4 ปีที่แล้ว +11

    I cannot tell you how much this helped me :)!

    • @Mono-pk9kt
      @Mono-pk9kt 3 ปีที่แล้ว

      It helped me too

  • @thegreatbananza5277
    @thegreatbananza5277 3 ปีที่แล้ว

    THANK YOU SO MUCH! I've been looking for a platformer tutorial without wall jump for AGES now!

  • @VeneDrummer
    @VeneDrummer 3 ปีที่แล้ว

    Simplest platformer physics I've found. Some people make it really complicated.

  • @bigmancozmo
    @bigmancozmo 4 ปีที่แล้ว +3

    Bug: You don't have 1 million subs but you need to!

  • @roseb2193
    @roseb2193 4 ปีที่แล้ว

    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

    • @bizkit.4991
      @bizkit.4991 4 ปีที่แล้ว

      i tried too but it was not clear but when i watched this tutorial i was clear.

  • @SomewhatAnthony
    @SomewhatAnthony 3 ปีที่แล้ว +1

    Quick, helpful, and working. Thank you

  • @lollipop_man294
    @lollipop_man294 ปีที่แล้ว

    Thanks a lot. You really helped me out with my presentation

  • @chonghh73ify
    @chonghh73ify 5 ปีที่แล้ว +7

    McGuy name Meaning
    M-Master
    C-Coding
    McGuy- Master Coding Guy

  • @shanesanchez2827
    @shanesanchez2827 ปีที่แล้ว

    10/10 tutorial! Extremely detailed, clear and concise 👍

  • @cmayotte9431
    @cmayotte9431 2 ปีที่แล้ว

    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.

  • @MrLikerBiker
    @MrLikerBiker 4 ปีที่แล้ว

    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.

  • @sofiewiehe1245
    @sofiewiehe1245 3 ปีที่แล้ว

    OMG YOU ARE A GENIUS THANK YOU

  • @hellostudiosanimationAG
    @hellostudiosanimationAG 3 ปีที่แล้ว

    best scratch tutorial ever

  • @Mateeee123
    @Mateeee123 3 วันที่ผ่านมา

    thank you kind man of culture

  • @arcrenee
    @arcrenee 4 ปีที่แล้ว +1

    how do you make the platformer

  • @soulpedro
    @soulpedro 3 ปีที่แล้ว

    This is very simple and work thanks!

  • @saikeertana3913
    @saikeertana3913 4 ปีที่แล้ว +1

    I think there must be part 2
    including different costumes
    While touching the green flag
    in the platform

    • @saikeertana3913
      @saikeertana3913 4 ปีที่แล้ว

      I follow this Comment
      because a platform game must include different
      levels in the
      GAMEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

  • @TheGrapeApe22
    @TheGrapeApe22 4 ปีที่แล้ว +1

    You're the griffpatch 2.0!

  • @usmanjanjua8483
    @usmanjanjua8483 4 ปีที่แล้ว +1

    Can you leave a link to this project

  • @bobbydigitales
    @bobbydigitales 4 ปีที่แล้ว +1

    Awesome tutorial, really clear and concise, well done!

  • @willrobson7265
    @willrobson7265 3 ปีที่แล้ว

    this is sooo helpful. My platformers sucked, because i couldn't figure out x physics, but this helped so much

  • @cobraking6526
    @cobraking6526 4 ปีที่แล้ว +1

    That was SOOOSOSOOSOSOSOSOS helpful!!!!!

  • @laxels8835
    @laxels8835 15 วันที่ผ่านมา

    Thanks this helped a lot!

  • @herrobriam
    @herrobriam 4 ปีที่แล้ว +3

    McGuy: "Okay now we're going to make a new variable: speedY."
    Me: 𝙄 𝙠𝙞𝙣𝙙𝙖 𝙛𝙞𝙜𝙪𝙧𝙚𝙙 𝙩𝙝𝙖𝙩

  • @Sub2BlueAnimator
    @Sub2BlueAnimator 7 หลายเดือนก่อน

    Great tutorial! But is there a way to make you point in the direction you're moving in?

  • @mxcqii
    @mxcqii 4 ปีที่แล้ว +1

    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

  • @afkNate
    @afkNate 4 ปีที่แล้ว +1

    Can someone tell me why it isn’t working for me?

  • @ٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴٴ-ع7ع

    if jump doesn't work add "set lock to 0" under if touching platform

  • @ConnerTheCoder07
    @ConnerTheCoder07 4 ปีที่แล้ว

    Thank you for existing McGuy

  • @AngryTomato828
    @AngryTomato828 3 ปีที่แล้ว +1

    ima be real with you, not the cleanest code or the most effective but it did the job

  • @Faxef
    @Faxef 5 ปีที่แล้ว +8

    Only real McGuy fans will know...

    • @waffle8264
      @waffle8264 4 ปีที่แล้ว +1

      STOP COPY CAT

    • @toxicsimcard9713
      @toxicsimcard9713 4 ปีที่แล้ว +1

      Bro literally everyone done that 😂

  • @glup128
    @glup128 4 ปีที่แล้ว +2

    I keep going through the floor. Help.

    • @glup128
      @glup128 4 ปีที่แล้ว +1

      Its not that, i fus4t always seem to go to one spot.

    • @glup128
      @glup128 4 ปีที่แล้ว

      While going through the floor.

    • @glup128
      @glup128 4 ปีที่แล้ว

      Help.

    • @caiooliveira1982
      @caiooliveira1982 4 ปีที่แล้ว

      i figured it out, check your "Y * -1" block probably is "X * -1"

  • @whydatduck662
    @whydatduck662 4 ปีที่แล้ว +1

    jumping doesn't work for my game

  • @ethanmugambi6906
    @ethanmugambi6906 4 ปีที่แล้ว

    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

  • @imbopam198
    @imbopam198 4 ปีที่แล้ว

    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!

  • @canard_2226
    @canard_2226 3 ปีที่แล้ว

    Very good thanks !

  • @learnfrommousa5151
    @learnfrommousa5151 4 ปีที่แล้ว

    thankyou very much

  • @sharkgamer1687
    @sharkgamer1687 3 ปีที่แล้ว

    I tried the program my sprite doesn't move when its touching the ground. ONLY if you jump.

  • @ThiHo-x4f
    @ThiHo-x4f 24 วันที่ผ่านมา

    this is really good

  • @joshualim9987
    @joshualim9987 3 ปีที่แล้ว

    how to make the platform sprite stay in the same position? cuz when I dragged it accidentally the whole platform changes

  • @apersonthatisdefinitelynot4095
    @apersonthatisdefinitelynot4095 3 ปีที่แล้ว

    thank youuuu

  • @GameTimeWithMax
    @GameTimeWithMax 3 ปีที่แล้ว

    Thanks! This was very helpful!

    • @mcguy1234
      @mcguy1234  3 ปีที่แล้ว

      Glad it helped!

  • @_danu
    @_danu 2 ปีที่แล้ว

    thing doesn’t work, all movement stops when my thing touches the GROUND

  • @cjproductions1671
    @cjproductions1671 4 ปีที่แล้ว +1

    My sprite won’t jump but the gravity works. Help please?

  • @mediocredemonmd2700
    @mediocredemonmd2700 3 ปีที่แล้ว

    thank you sooooo much

  • @bigmancozmo
    @bigmancozmo 4 ปีที่แล้ว +1

    why does my guy go into the ground and disable me from jumping

    • @bigmancozmo
      @bigmancozmo 4 ปีที่แล้ว

      oh i just noticed. I had speedX in a place where i should have speedY

  • @anhhoangnam5959
    @anhhoangnam5959 4 ปีที่แล้ว

    Why my block doesn't stand a little then the ground?

  • @plerrysplainer922
    @plerrysplainer922 4 ปีที่แล้ว +1

    Omg this is so helpful

  • @PumpkinZM
    @PumpkinZM 3 ปีที่แล้ว

    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

  • @aaronschuelke30
    @aaronschuelke30 4 ปีที่แล้ว

    It does not move left and right. Can you please help?

  • @wowyok4507
    @wowyok4507 3 ปีที่แล้ว

    awesome tutorial

  • @minniema8180
    @minniema8180 4 ปีที่แล้ว +1

    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?

  • @DONUTDONUTDONUTDONUTDONUT
    @DONUTDONUTDONUTDONUTDONUT 4 ปีที่แล้ว +2

    Only real McDonalds fans will know...

  • @somerandomstuff8474
    @somerandomstuff8474 3 ปีที่แล้ว

    Wow thanks

  • @slami4868
    @slami4868 3 ปีที่แล้ว

    10000/10 Vid Mate

  • @yodeh_yodeh2071
    @yodeh_yodeh2071 4 ปีที่แล้ว +1

    This is so helpful and thank you for the tutorial

  • @SangitaPandey_
    @SangitaPandey_ 4 ปีที่แล้ว +1

    It is not coming back after touching flag

  • @ArnavBoom
    @ArnavBoom 4 ปีที่แล้ว

    thanks man

  • @bodo1498
    @bodo1498 4 ปีที่แล้ว

    When i jump it teleports instead of glides and it barely goes up at all

  • @fififiz
    @fififiz 4 ปีที่แล้ว

    Thx its very useful !

  • @oliverutley9630
    @oliverutley9630 4 ปีที่แล้ว

    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

  • @robloxdude3101
    @robloxdude3101 3 ปีที่แล้ว +1

    I made everyting properly but my project is not working good

  • @Nothing-16309
    @Nothing-16309 4 ปีที่แล้ว

    My character goes trough walls? Any easy fix?

  • @kuukkelsson_play2041
    @kuukkelsson_play2041 3 ปีที่แล้ว

    needed some change but good!

  • @-MineShorts
    @-MineShorts 4 ปีที่แล้ว +1

    it doesnt work. my sprite falls right thru the platform

    • @caiooliveira1982
      @caiooliveira1982 4 ปีที่แล้ว

      i figured it out, check your "Y * -1" block probably is "X * -1"

  • @ninzembo908
    @ninzembo908 3 ปีที่แล้ว

    It's easy but to make the code of hier complexity that's something... Keep up the good work 👍

  • @TOOSGO
    @TOOSGO 4 ปีที่แล้ว

    Wow . I made it . It so cool . Thanks

  • @solarstuff2661
    @solarstuff2661 4 ปีที่แล้ว

    Only real McGuy fans will know WHAT

  • @juurpk
    @juurpk 4 ปีที่แล้ว +3

    90% comments = "only real McGuy fans will know"
    10% comments = wow this tutorial is so good

  • @bbmsterz2378
    @bbmsterz2378 4 ปีที่แล้ว +2

    "Whatever Floats Your Boat" XD

  • @persongavrocks6369
    @persongavrocks6369 3 ปีที่แล้ว +2

    'Speed Y' uhhh sir, it's pronounced Speedy

    • @CetVLZ
      @CetVLZ 3 ปีที่แล้ว

      S a n k    t h e    H e d g e

    • @halobread
      @halobread 3 ปีที่แล้ว

      * You feel like you are right.
      * You perceive the opinions of others.
      * You decide to roast me, thinking I did not get the joke.

  • @jonassvindland6037
    @jonassvindland6037 4 ปีที่แล้ว +3

    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.

  • @epicnessinapan8027
    @epicnessinapan8027 4 ปีที่แล้ว

    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?

  • @dogs4life3468
    @dogs4life3468 ปีที่แล้ว

    THIS IS AWESOME!!!!!!!!!!!!!!!! THANKS!!!!

  • @aqwzmid3252
    @aqwzmid3252 3 ปีที่แล้ว

    its working but my sprite goes a bit up and down really fast cna u help me with that?

  • @samirayres5048
    @samirayres5048 3 ปีที่แล้ว

    this dosent work for me i did it 4 times and reloaded the page it still dosent work

  • @themotokid3125
    @themotokid3125 4 ปีที่แล้ว +1

    my block keeps sinking into the ground

    • @caiooliveira1982
      @caiooliveira1982 4 ปีที่แล้ว

      i figured it out, check your "Y * -1" block probably is "X * -1"

  • @Natsock
    @Natsock 4 ปีที่แล้ว +1

    Cooooool

  • @omarsayed7411
    @omarsayed7411 3 ปีที่แล้ว

    your the best!

  • @gamedragon444
    @gamedragon444 3 ปีที่แล้ว

    I want to make a trampoline and I have used this script on my sprite how do I make a trampoline?

  • @linkrrohcs7874
    @linkrrohcs7874 4 ปีที่แล้ว

    I was having so much trouble getting my game to work this is amazing

  • @Cabanerolagelato
    @Cabanerolagelato 4 ปีที่แล้ว

    What is the song in the background named?

  • @zilalkadibalban4570
    @zilalkadibalban4570 4 ปีที่แล้ว

    mys not working its keeping getting stuck in the ground

  • @aryanbilal78
    @aryanbilal78 4 ปีที่แล้ว

    wow, just wow

  • @YourBoiVab
    @YourBoiVab 4 ปีที่แล้ว

    the game is not woring only the sidewise movement is good but it is not jumping

  • @SuperKungAL
    @SuperKungAL 3 ปีที่แล้ว

    I have one question How to do wall jump?

  • @tielmctiel7265
    @tielmctiel7265 4 ปีที่แล้ว +1

    mine does not say "platform"

  • @keyaddict536
    @keyaddict536 4 ปีที่แล้ว

    WOW U ARE MASTER CODER!!