How to code JUMPING and GRAVITY | Make a sprite jump | Realistic game effect - Scratch 3.0 Tutorial

Поделиться
HTML-код
  • Опубликовано: 3 окт 2024

Комментарии • 600

  • @elrincondeprimaria
    @elrincondeprimaria  2 года назад +24

    ✅ Here you have my PLATFORMER GAME TUTORIAL in which I FIX THE CLIMBING BUG and other issues related to collisions. In addition, I explain how to add NEW LEVELS:
    ruclips.net/video/_T5TtmYBZLc/видео.html

  • @kailin4253
    @kailin4253 3 года назад +64

    I just find it funny when someone’s user name is a different language but can speak English anyways, Thank you for the video. Have a nice day! 👏🏼🙏🏻✊🏻 Muchos Gracias Amigo!

  • @legitlefty
    @legitlefty Год назад +23

    thank you so much!
    i was trying to do real physics equations but it got too complicated :|
    so this was a lifesaver!

    • @elrincondeprimaria
      @elrincondeprimaria  Год назад +1

      👍🏼☺️

    • @The-K.R
      @The-K.R 6 месяцев назад

      I completely agree with you, also, I really like that you profile pic is spamton from deltarune.

  • @skymed3095
    @skymed3095 3 года назад +7

    thanks this helped my game i've been working on for a long time

  • @roxers7531
    @roxers7531 3 года назад +8

    Omg thanks a lot dude, I've watched so many videos on how to fix the vibration, and this was the only one that worked!

  • @Dracoman
    @Dracoman 3 года назад +15

    You are a very handsome, underrated dude! I hope you channel continues to grow further

  • @terbowithane
    @terbowithane 2 месяца назад

    Spanish: Esto fue realmente útil. Buen trabajo. Ingles: This was actually useful. Nice work

  • @scope2585
    @scope2585 Год назад +9

    another easier thing you could do to make the character change directions is to make it where there is costume corresponding to the direction the sprite is pointing in (eg. if right arrow pressed switch costume to costume b)

  • @wiebelvr8008
    @wiebelvr8008 Год назад +1

    tysm you made my scratch career this just shows to never give up and ones again thank you!!!!

  • @charliesimpson5666
    @charliesimpson5666 2 года назад +2

    Very basic and helpful. did not struggle at all while try to get this into my own game

  • @iHeartLuki
    @iHeartLuki Год назад +6

    Thank you bro🙏you helped me SOOOO much and you definitely deserve all the respect and Love. I Hope your Channel Grows big Sometimes🙏👍

  • @Ethans_Here
    @Ethans_Here Год назад +4

    Thanks dude, really needed this (:

  • @phillipwest1779
    @phillipwest1779 Год назад +1

    thank you so much now I can jump because i'm working on a platforming game

  • @NoahChristmann-d3g
    @NoahChristmann-d3g 8 месяцев назад +2

    dank yu vor dis video weri gud

  • @MohamedAli-me7uh
    @MohamedAli-me7uh 11 дней назад

    this is the first time i see tutorial that works and easy what magic you use? thanks you so much you are a lifesaver you saved me from keeping hitting my head to the walls:D

  • @JackelineBezerra-tw9mv
    @JackelineBezerra-tw9mv 7 дней назад

    Thank you!, this was very useful for my Scratch game "Oyriak"!

  • @alishaverzwyvelt2006
    @alishaverzwyvelt2006 10 месяцев назад +1

    OMG that was so helpful thank you!

  • @primodesmile634
    @primodesmile634 3 года назад +1

    Wow it actually works thanks

  • @Mr27official
    @Mr27official 2 года назад +3

    Thank you so much! You really helped me a lot 😀😀

  • @captaintheo86
    @captaintheo86 2 года назад +4

    this is great! I'm making a platformer on scratch and this really helped!

  • @AmanNgmOP
    @AmanNgmOP 28 дней назад

    When i was a kid, I really used to think that coding jump, friction, acceleration is hard. Nowadays after studying physics, I feel confident to code it 😂

  • @jinglepants
    @jinglepants 3 года назад +2

    Thank you I can finally continue on my game

  • @OrangePJyt
    @OrangePJyt Год назад +1

    thank you i am making a game named "Super Cat Bros" and i needed help with gravity. This was very helpful and it easy =)

  • @not_ptyr
    @not_ptyr 9 месяцев назад +1

    It worked, big thanks! I will keep the bug though because im kinda lazy to make a wall climb mechanic in my Parkour game

  • @FunMarioBros2021
    @FunMarioBros2021 2 года назад +1

    thanks i used this for a mario game

  • @davinv3859
    @davinv3859 2 года назад

    this helped for my game im makeing a slime rancher fan game evrey slime has to fall good so keep up the awsome work

  • @AylexOnYT
    @AylexOnYT 4 месяца назад

    Thank you for the awesome tutorial mate! You have saved me, I have spent days looking for the right video for gravity and jump and yours actually worked. I have an assignment due tomorrow and I thought I wouldn't find a video in that time. Once again thank you so much. Much love
    +1 Subscriber 😉

    • @AylexOnYT
      @AylexOnYT 4 месяца назад

      I want to put this into a 2 player game so when I added the 2nd player I duplicated the 1st one but now they both don't jump as high?
      *EDIT: I have fixed this problem. Just created a yVelocity for each sprite using the option "For This Sprite Only".

    • @elrincondeprimaria
      @elrincondeprimaria  4 месяца назад

      You'd need two different "y velocity" variables or make it "for this sprite only"

  • @Mr.BerryYT
    @Mr.BerryYT 4 месяца назад

    díky za tutorial byl super😀

  • @Awesomegamingandmemes
    @Awesomegamingandmemes 4 месяца назад

    I had to delete the replace part cause it would be vibrating like crazy but I was fine without. Amazing tutorial, I used it on Mr Chick run, my game and it worked
    😄 9/10 definitely subbed

  • @rrodey
    @rrodey 2 года назад +21

    This is a great tutorial! One small problem; touching floating platforms make the sprite teleport above it. Is there a fix to this?

    • @elrincondeprimaria
      @elrincondeprimaria  2 года назад +5

      Check the description of the video.

    • @Dulous_christhou
      @Dulous_christhou Год назад

      You can make a hitbox and if the hitbox touches the platform, you cant get the cat to touch it

  • @rollinrobloxxd8758
    @rollinrobloxxd8758 2 года назад

    This guy is the best! I went from knowing nothing, to making an entire platformer! He is the best at scratch! (No offense to anyone else out there who codes with scratch, and yes, I know griffpatch

  • @OnlyDaylyn
    @OnlyDaylyn 10 месяцев назад

    This tutorial really came in clutch. Tysm! you earned a sub

  • @FTSebby
    @FTSebby 3 года назад +3

    Thank you I can finally continue on my game :)

  • @jamesdunham5505
    @jamesdunham5505 2 года назад

    Thx for making this video because I really wanted to make a platformer like rpg in scratch.

  • @AcaciaOSC
    @AcaciaOSC Год назад

    This is the best tutorial I've ever seen, THANK YOU

  • @rizal4596
    @rizal4596 3 года назад +1

    thank you for this tutorial, hopefully i remember to put your name into the credits

  • @kartavyapatel4720
    @kartavyapatel4720 3 года назад +1

    Very nice, I will use these in my platformer

  • @auroratraver9254
    @auroratraver9254 2 года назад

    thank you! now I can make my geometry dash project

  • @ragavanranjithkumar4348
    @ragavanranjithkumar4348 4 месяца назад

    Very thanks sir, this helped me a lot for my game

  • @legomaniac4689
    @legomaniac4689 2 года назад

    This helped me a ton with my platformer

  • @notrcont
    @notrcont Год назад

    it helped me a lot thank you for the video

  • @CoconutREAL111
    @CoconutREAL111 Год назад

    tysm this helped me a lot for my game 👍👍

  • @MrSoapi-333
    @MrSoapi-333 5 месяцев назад

    THANK YOU SO MUCH I NEEDED THIS VIDEO!

  • @waterH20_23
    @waterH20_23 2 года назад

    tysm for the jumping system you helped me out a ton on my scratch project

  • @WilliamMurphy-i1v
    @WilliamMurphy-i1v 8 месяцев назад

    Omg I was getting so mad but then after watch your video 2 times i realized i had one of my variables called my-variable instead of y. but thank you it works so smooth.

  • @Solar3232
    @Solar3232 3 года назад +1

    Thank you! Helped so much!

  • @MeredithDeckerDeegan
    @MeredithDeckerDeegan Месяц назад

    thanks it was quick and easy

  • @loretoys8785
    @loretoys8785 2 года назад

    this is fantastic! i am using this for a street fighter game but in JoJo

  • @subscribetosus5989
    @subscribetosus5989 3 года назад

    thx bro i got every step correct and made super wacky bros. the game demo

  • @violinkid6595
    @violinkid6595 Год назад

    Thanks dude, this really helped alot with my new game, I am not new on scratch but I am still having trouble making gravity, so thanks alot!

  • @the_emerald_memes_official
    @the_emerald_memes_official Год назад +1

    I could not thank you anymore. Here's the game I made out of this: (GAME STILL IN PROGRESS)

  • @Oskarthescratchman
    @Oskarthescratchman 12 дней назад

    Thanks sooooo much bro, you deserve the subscribe

  • @NotAlphaSlayer15
    @NotAlphaSlayer15 6 месяцев назад +1

    *thank you!*

  • @AACHIGAMER289
    @AACHIGAMER289 Год назад

    this rlly helped me out thx

  • @ghousiashahana3618
    @ghousiashahana3618 Год назад

    THANK YOU!! it helps me

  • @quinnlil
    @quinnlil Год назад

    watch this every day

  • @LNPV24
    @LNPV24 Год назад

    Thanks this was the best scratch tutorial i ever watched:)

  • @xyrity
    @xyrity 2 года назад

    thank you so so so much bro, it worked!

  • @FoxTrolls
    @FoxTrolls 10 месяцев назад +1

    When I add to the part were it won't allow double jumping and place the blocks into the needed area when I play it, it seems that the gravity is too strong for it to jump normally.

    • @elrincondeprimaria
      @elrincondeprimaria  10 месяцев назад

      I'd need to see your project to help you out. You have my email address in the description of the video.

  • @LiamGames662
    @LiamGames662 2 года назад

    Thanks bud really helped i will make sure to put your link in my credits

  • @JadenTheBarber
    @JadenTheBarber Год назад

    You saved my project, and saved me so much time!! MUCHAS GRACIAS!!

  • @safwanabintesaif511
    @safwanabintesaif511 Год назад

    Thank you brother it really helped me out on my game

  • @jawgw
    @jawgw 3 года назад +2

    thank you this helped a lot in my 3D game!

  • @mataspocius1392
    @mataspocius1392 Год назад

    Thank you very much! ❤ I'm creating Minecraft on scratch, so it really helped. Thank you bro😀

  • @America_flag24
    @America_flag24 Год назад

    Thank you! Now I can make a 2d survival game!

  • @fyshstix9781
    @fyshstix9781 10 месяцев назад

    Thank you for this, it is so helpful!

  • @Hampter_the
    @Hampter_the Год назад

    thank you so much !! Great video btw

  • @rayanemouniri7621
    @rayanemouniri7621 2 года назад +1

    Tanks you very very much

  • @imhappy9920
    @imhappy9920 3 года назад

    It worked!

  • @benjaminshemluck7571
    @benjaminshemluck7571 2 года назад

    Thanks sooo Much!! You saved my game :)

  • @koalakai4741
    @koalakai4741 2 года назад

    helped make a school project easier

  • @acidguy-e8y
    @acidguy-e8y Год назад +1

    I made a variable called jump and if you jump it will set to yes otherwise it will set to no. I used this to add a slam if you press down in midair.

  • @XeroTRK
    @XeroTRK 3 месяца назад

    2 years later and i still need help from you

  • @FebriDahri
    @FebriDahri Год назад

    Thx for the tutorial bro..👍👍

  • @KlentiTheRobloxian
    @KlentiTheRobloxian 10 месяцев назад

    U really hwlped me even though im warching it after 2 YEARS

  • @shiuandai0426
    @shiuandai0426 4 месяца назад

    thank you for your tutorial

  • @anjulovely4499
    @anjulovely4499 3 года назад +1

    Good one...thanks...

  • @El-Hindi
    @El-Hindi 2 года назад

    best tutorial ever bro👍

  • @MinuteGlass
    @MinuteGlass Год назад

    this helped me out so much 😊

  • @bobd-el2su
    @bobd-el2su Год назад

    Thanks so much ❤❤❤

  • @BlitzKING777
    @BlitzKING777 12 дней назад +1

    Hey, great tutorial! But I have one problem: When my figure is in the air, it floats above the ground for a second and then touches the ground. I don't know if you're still responding to comments in here, but if yes, it would be pretty helpful!

    • @elrincondeprimaria
      @elrincondeprimaria  12 дней назад

      Email me your project. You can find my address in the description of the video.

  • @WaterIsntFiguredOut
    @WaterIsntFiguredOut 8 месяцев назад

    you can easily fix the "up" gravity by adding join (-) (gravity) to the change y thing

  • @lynetmartinez3087
    @lynetmartinez3087 Год назад

    why is this so good🤔

  • @Bruh-kh2cs
    @Bruh-kh2cs 2 года назад

    thanks for help this really helped me

  • @Bl.sporti
    @Bl.sporti 2 года назад

    Thanks that tutorial was amazing i understood all :D you are amazing i will sub to you and your smile is cool :D

  • @chair5723
    @chair5723 2 года назад

    Thanks a lot helped with my game

  • @kenberendzen3183
    @kenberendzen3183 2 года назад

    You are a genius

  • @Avearge_Ant
    @Avearge_Ant 2 года назад +3

    thank you for the tutorial! but I have one question: is it possible to make the sprite do double jumps, but not triple jumps?

    • @bloodiedknight0049
      @bloodiedknight0049 2 года назад

      I think one way to do that would be to create a new variable called jump count, or something like that, and use an if and statement that checks if the up arrow has been pressed and also checks if jump counter is greater than 2. Inside that if and statement you can set y velocity to 12 like in the video and also increase jump count by one. Also in order to jump in the air you would have to move the jumping related code outside of the if statement that checks if the sprite is on the ground. Also in order to be able to jump multiple times, set the jump counter back to 0 once the sprite is on the ground.
      I think this should work but if you have any questions I'll try to answer them.

  • @HappyTuna599
    @HappyTuna599 Год назад

    thanks for the tut

  • @Just_GamingYC
    @Just_GamingYC 3 года назад +2

    I have a small bounce when I touch the ground after a jump but it works fine

    • @elrincondeprimaria
      @elrincondeprimaria  3 года назад

      You can check my dinosaur's code in this project: scratch.mit.edu/projects/484645027/

  • @starryskies9944
    @starryskies9944 3 года назад +4

    What do you do when you have a bit of ground that the character should not be able to jump onto but does anyway?

    • @bas1cbrick705
      @bas1cbrick705 2 года назад

      New sprite, or use {If touch (color)} block

  • @heerruparelia8337
    @heerruparelia8337 2 года назад

    I watched griffpatch for a platformer video but this is way better

  • @TheTrueDrStoned
    @TheTrueDrStoned Год назад

    you´re a hero

  • @DaveAndBustersOffical
    @DaveAndBustersOffical 2 месяца назад

    i needed this for geometry dash

  • @codeacademy6394
    @codeacademy6394 Год назад

    great tutorial! you earned a sub :)

  • @I.am.him111
    @I.am.him111 2 года назад

    this is great! (liked)

  • @gayuhprayoga8264
    @gayuhprayoga8264 2 года назад

    It's cool 👍🏼

  • @tAe_Otan
    @tAe_Otan 6 месяцев назад

    thanks bro and i subscribed to you 😇😇😇

  • @maxdoesstuff2179
    @maxdoesstuff2179 2 года назад

    Thank you so much dude!

  • @mustafauygur-k5w
    @mustafauygur-k5w Год назад

    thank you so much 🙂