Code a Platformer Game | 3. Hitboxes & Animation

Поділитися
Вставка
  • Опубліковано 29 жов 2024

КОМЕНТАРІ • 1,8 тис.

  • @griffpatch
    @griffpatch  11 місяців тому +23

    Next Episode #4 - ua-cam.com/video/Ham3cyqbPuQ/v-deo.html
    Starter Project Game Assets - scratch.mit.edu/projects/560596896/
    Scratch Studio (post project here) - scratch.mit.edu/studios/30287090/
    Channel membership with perks - www.youtube.com/@griffpatch/join

    • @thirishwehlaing2274
      @thirishwehlaing2274 10 місяців тому

      scratch cat be like: I'm in creative mode

    • @Tyler-b9j
      @Tyler-b9j 9 місяців тому

      You added in a typo at 5:37

    • @Zer0blox32
      @Zer0blox32 4 місяці тому

      there was hitbox v2 in the cat sprite

  • @ashtonruiz3232
    @ashtonruiz3232 3 роки тому +61

    I love how genuinely excited you seem here and there to code in scratch.
    It shows you’re very enthusiastic about all things scratch.
    Another thing I like is how to explain the ins and outs of the scratch code.
    Whether it’s explaining the code, explaining the project, and more.
    I like the way you teach, you have been helping me out for years already and I really, really appreciate it. Thank you, Griffpatch. :)

  • @rykrishot
    @rykrishot 3 роки тому +193

    I don't care if I don't code projects anymore or even frankly care about making a platformer, I watch all of these videos anyway. Just makes me smile that there is an adult out there, sharing his time to teach random strangers (mostly kids) for free! I imagine it must be a pretty big sacrifice recording, scripting, and editing a half-hour-long video.

    • @griffpatch
      @griffpatch  3 роки тому +85

      Thanks as always :) - Yes - I've spent almost all my free time doing it for all of this year! If you add up all the time is would be phenomenal lol. Each video takes me around 20-30 hours of work

    • @GemmaOrdidor
      @GemmaOrdidor 2 роки тому +3

      Hi gifpshr

    • @kingstonten
      @kingstonten 2 роки тому +3

      Wow, thanks for you work!

    • @Yooli8537
      @Yooli8537 2 роки тому +2

      i use these videos to code, but they are also very enjoyable!

    • @Yooli8537
      @Yooli8537 2 роки тому +3

      @@griffpatch thats alot

  • @justsomeguy2632
    @justsomeguy2632 2 роки тому +12

    Griffpatch: makes one block of code.
    Me: I HAVE TO PAUSE THE VIDEO NOW

  • @k-a-t_21
    @k-a-t_21 3 роки тому +171

    I like how fun much coding can be with Griff. He makes everything fun and enjoyable

    • @mingleung3147
      @mingleung3147 3 роки тому +3

      Yes!

    • @leoemerald4247
      @leoemerald4247 3 роки тому +2

      If he was my teacher I wouldn’t fail a coding test (My whole class fail the coding test)

    • @AllInOne-yy3mq
      @AllInOne-yy3mq 3 роки тому +2

      Yes! But I am not a fan of griffpatch because I am a windmill of griffpatch! Lol

    • @k-a-t_21
      @k-a-t_21 3 роки тому

      Wow I never expected positive replies lol :D

    • @DumplingIX
      @DumplingIX 3 роки тому

      @@k-a-t_21 I hate roblox can you do some Minecraft content

  • @shumai1618
    @shumai1618 2 роки тому +32

    I learnt more about Scratch from your videos in two days, than from my IT teacher in school in 3.5 years.

  • @UltraDestroya48
    @UltraDestroya48 3 роки тому +203

    Griffpatch is like a teacher. He knows A LOT of things, somehow.

    • @exploreiq2965
      @exploreiq2965 3 роки тому +6

      He is actually a JAVA coder ad if we ask him to code the hole scratch server he could! He also made a physics extention by making a new scratch server

    • @AmitSingh-fo7zd
      @AmitSingh-fo7zd 3 роки тому +4

      Teachers are not cool but griffpatch is cool so call him cool teacher

    • @adinaliliana2
      @adinaliliana2 3 роки тому +5

      He taught me alot :) Btw guys, do you also use scratch at school for computer science?

    • @TimeMaster57
      @TimeMaster57 3 роки тому

      @@adinaliliana2 Really?

    • @togwswtawog
      @togwswtawog 3 роки тому

      @@adinaliliana2 no

  • @superepicbacon2550
    @superepicbacon2550 2 роки тому +10

    You are the only scratch youtuber and I spend half an hour scrolling through projects which have credit for you. Keep it up!

  • @chiroyce
    @chiroyce 3 роки тому +342

    Regular UA-camrs: _Posts a 10 minute video every 2 weeks_
    griffpatch: _Half an hour of fun content every week!_

  • @randallmays5463
    @randallmays5463 2 роки тому +17

    Griffpatch, you are an amazing teacher. It helps that you have a modern tutorial on how to do this stuff. Other tutorials were made in 2014 and don't work anymore. You really do help me a lot! Also, I hope you're OK with this but I used the Scratch Cat sprite you used to make the models for my character in the game. Thanks!

    • @BlazerFC-VRFS
      @BlazerFC-VRFS Рік тому

      i cant get his sratch cat to my game!

    • @agloreeeglora
      @agloreeeglora Рік тому

      @@BlazerFC-VRFS make a remix of his cat animations and backpack it

  • @Fyndora
    @Fyndora 3 роки тому +34

    Great and "Thank you!". I would never had tried to make the hitbox so narrow, but it looks so good!

  • @jikill7586
    @jikill7586 2 роки тому +3

    that KEY X variable blew my mind on how amazing it is. you’re a genius!

  • @MeWhenBonkio
    @MeWhenBonkio 3 роки тому +12

    I really like how the tutorials got more and more interesting after every video. Good job, griffpatch!

  • @Pacmaniac0908
    @Pacmaniac0908 3 дні тому +1

    Wow! This is really cool! Like, I learned a thing or two from this! Like how the 'wait 0 seconds" block is useful? You make my day griff.

  • @bbc2512
    @bbc2512 3 роки тому +7

    I love this and the tile scrolling platformer. It’s great!

  • @howlerj5643
    @howlerj5643 2 роки тому +1

    this tutorial is having some funny bits and it's sounding super serious at the same time . It's AMAZING

  • @asadokimas981
    @asadokimas981 3 роки тому +22

    Lastly, I noticed that despite platformer shooter is great game type I don't see a lot of them on scratch. Maybe next tutorial series can be about this? (Also I;m currently making one and AI in ticks is a pain, especially as complicated as mine).

  • @MemeStudiosTM
    @MemeStudiosTM 2 роки тому +1

    i like how instead of just explaining this all normally he actually has actual reactions and comments, adds a lot more spirit to it!

  • @kothapallisowmya2039
    @kothapallisowmya2039 3 роки тому +5

    griff is the best he took his time to heart almost all the comments and I also completed this tutorial series till part 3 waiting for part 4 :D

  • @zayskyprogramming
    @zayskyprogramming 2 роки тому +1

    I really like how you make the coding so fun! you joke about the whiskers, and make learning about coding so much fun! Thank you Griffpatch! :)

  • @saanvimurali6a054
    @saanvimurali6a054 3 роки тому +28

    Griff: "Select this costume, we grouped it earlier, making this task easier, and DELETE IT!"
    Scratch cat: "Meow!!"
    Griff: "Sorry Scratch Cat 😉"
    Griff really understands the Scratch Cat!

    • @snakeeyesandpinealglands
      @snakeeyesandpinealglands Рік тому +1

      @Sebastian Mullins They're in his template project. The link to it is in the description of the first episode. Just remix it and the animation sprites will be there.

    • @UpArrowMate
      @UpArrowMate Рік тому

      @Sebastian Mullins ur gonna have to recode it ALL

    • @SweetPrincess0509
      @SweetPrincess0509 7 місяців тому +1

      WHAT SEBASTIONMULLIS

    • @spr0uterr
      @spr0uterr 4 місяці тому +1

      @@SweetPrincess0509 I HAVE NO IDEA

    • @cooperthedoggo
      @cooperthedoggo 4 місяці тому +1

      @@spr0uterr ME NEITHER

  • @saikarthik3093
    @saikarthik3093 2 роки тому +1

    You're a splendid coder. Every time I learn something new and enjoy your videos. You are simply spectacular.

  • @mahadevan4660
    @mahadevan4660 3 роки тому +4

    its been only 13-14 hours you posted community tab but I feel Like I've been waiting for this for years :))

  • @HusamCode1
    @HusamCode1 5 місяців тому +1

    you are the best !
    you really make my videos so much easy to make!
    thanks for spending your free time for teaching kids like me!

  • @bullpenlive
    @bullpenlive 3 роки тому +9

    Awesome the do not rotate hitbox is gonna make my game so much smoother :D

  • @idontknowwhattonamemychann9537
    @idontknowwhattonamemychann9537 2 роки тому

    Thank you griffpatch! These videos are helping me understand concepts like never before! I love how you explain everything and take it in steps! It makes learning soooo easy.

  • @Kim-qn4wz
    @Kim-qn4wz 3 роки тому +4

    OMG! You made my day griffpatch! Thanks!!!!!!!

  • @susanabbott3181
    @susanabbott3181 14 днів тому +2

    You want it to be realistic. Set jump force to 2 so they jump as high as a real cat

  • @ThePerfectHandle
    @ThePerfectHandle 3 роки тому +57

    Griffpatch is like my tech teacher, but unlike him, Griffpatch doesn't care about mistakes, he explains things in a simple way and he wears glasses

    • @griffpatch
      @griffpatch  3 роки тому +17

      I do care about mistakes *grin* - But we all make them right!

    • @ThePerfectHandle
      @ThePerfectHandle 3 роки тому +3

      @@griffpatch Nooo, "doesn't care about mistakes" is in the sense that if we make a mistake you don't give us 4, but you try to help us solve it

    • @ThePerfectHandle
      @ThePerfectHandle 3 роки тому +1

      Anyway, thanks very much for your fantastic tutorials, I learned a lot about code a platform game, so "scratch oon!"

    • @-tylerrodgers-
      @-tylerrodgers- 3 роки тому

      @@griffpatch ARE YOU BI OR PAN???????????

    • @griffpatch
      @griffpatch  3 роки тому +3

      @@-tylerrodgers- Nope

  • @kaylencox8313
    @kaylencox8313 Рік тому

    Thank you so much Griff, this tutorial helped me get an 85% on a school project, a real life saver!

  • @ThatCrownedKing
    @ThatCrownedKing 3 роки тому +6

    Hello griffpatch! We have been a fan of your amazing tutorials since Jul. 2019! Just wanted to say that your content is awesome!

  • @Firerayse
    @Firerayse 2 роки тому +2

    Thanks Griffpatch !! I'm working on my animation video but I don't How to change back to what costume I want, When I was thinking I remember that you make animation script. Thank you so much !!!

  • @ussystems8202
    @ussystems8202 3 роки тому +103

    Griffpatch is Scratch's god XD

  • @Iamnotlost
    @Iamnotlost Місяць тому +1

    I LOVE MAKING SCRATCH PROJECTS WITH YOU❤❤❤

  • @Enderia2
    @Enderia2 2 роки тому +4

    I just realized griffpatch does barely any cuts so if you’re as good as this guy you can probably do it in like 20 minutes for each episode worth.

    • @KrewPlayer42
      @KrewPlayer42 Рік тому

      He does it for 20-30 hrs of work for a 1/2 hr video

  • @Nathan_no1
    @Nathan_no1 Рік тому

    Favorite episode the way everything comes together in the end makes me feel so happy!

  • @Alex-my8vs
    @Alex-my8vs 3 роки тому +10

    This channel don't having any toxics like a "SANISHOW"

    • @FireyDeath4
      @FireyDeath4 3 роки тому +1

      Well, that's mostly because Scratch is based on children, and kids deter toxicity. I'm tempted to get some of them to start taking over Facebook and Twitter and Reddit lol

  • @thescratchsavy1587
    @thescratchsavy1587 3 роки тому +12

    Ahh that line rings in my ears "HELLO FELLO SCRATCHERS"

  • @winniewinhz4010
    @winniewinhz4010 Рік тому +1

    l'm learning and I love how griffpatch's talking is easily understood 😆

  • @MonoGloved
    @MonoGloved 3 роки тому +6

    COOL. Maybe you should continue the zombie cube tutorial like man please I’m begging you. Maybe add a new level or something please please please.

    • @irwinrudolf
      @irwinrudolf 3 роки тому +1

      I think you could continue it yourself by trying out new levels yourself and making new mechanics for fun

    • @MonoGloved
      @MonoGloved 3 роки тому

      @@irwinrudolf ok

    • @WilliamNyberg
      @WilliamNyberg 3 роки тому

      @@irwinrudolf yeah, I used that tutorial to make a full-fledged top-down halo-style shooter with cutscenes and interactive elements. Powerful stuff.

  • @VillaQa
    @VillaQa 2 роки тому

    Epic, Couldn't Believe How Good This Games Turning Out Thanks!

  • @rajaiyanlatha
    @rajaiyanlatha 3 роки тому +5

    12:03 Scratch Cat opened its mouth

  • @comboing3108
    @comboing3108 2 роки тому

    Hey, Phenomenal work! I see EXACTLY why you're recognized as the greatest scratcher. Keep up the good work!

  • @dkianz
    @dkianz 3 роки тому +4

    Finally!

  • @Amawzings
    @Amawzings 2 роки тому

    Hey griffpatch i've got a school project and i've got to make a scratch game, your tutorials are really helping me!

  • @ilikeminecraft1232
    @ilikeminecraft1232 3 роки тому +15

    "All around is not so good for a platformer game"
    Sonic: no

  • @AustinChen-d2m
    @AustinChen-d2m 4 місяці тому

    At 5:36 you spell "touching" "tourching".
    I love your work!

  • @alihesham8167
    @alihesham8167 3 роки тому +11

    finally non-membership people can watch this :) my mom wouldn't allow me to press join
    Edit: KID CHAT HAPPENING

    • @grewpet2253
      @grewpet2253 3 роки тому

      same :V

    • @NoobtasticRX
      @NoobtasticRX 3 роки тому

      Are you small?

    • @alihesham8167
      @alihesham8167 3 роки тому

      @@NoobtasticRX Im 8

    • @alihesham8167
      @alihesham8167 3 роки тому

      @@grewpet2253 i wish i was older, then it was my choice to join or nah

    • @alihesham8167
      @alihesham8167 3 роки тому

      @Jokey Jokey gaming mine doesnt, instead i dream a 928787282191711881 decade lecture and why

  • @sillycitystation
    @sillycitystation Рік тому

    This is the thing I needed, thank you for showing up! I can continue my project now!

  • @ItzarReal
    @ItzarReal Рік тому +1

    the look of pure shock on the scrath cat's face at 12:03 had me rolling 😂😂😂

  • @缪向红-c9s
    @缪向红-c9s Рік тому

    Your videos are very cool and i very appreciate the hard work you put in your videos. I have been watching your videos for more than 7 months. Thank You for your hard work in your videos.

  • @jamespugh9475
    @jamespugh9475 2 роки тому

    You light my day helping me fix all my tech-problems!

  • @iwillcatchulateryanoob3429
    @iwillcatchulateryanoob3429 Рік тому

    your videos help me a lot man! my dream was to make a game any genre but i wanted to make a platformer like mario and your videos made my dream come true.
    i have nothing to say about you i'm speechless the code worked so well thanks again.

  • @B1nar10countryballsOFICIAL
    @B1nar10countryballsOFICIAL 3 роки тому +1

    26:37 Scratch Cat: I shrink! How i did it?
    Griffpatch: I did it

  • @DreamyDecor-2024
    @DreamyDecor-2024 7 місяців тому +1

    I have a problem, So on 6:10 when you are checking the touching level, I followed all the steps but my backdrop does not change from red, I am going to post my project on scratch by tomorrow, Kindly Help

  • @ahmedazizcharfi
    @ahmedazizcharfi Рік тому +1

    hey griffpatch i really like your tutorials

  • @ihavenoproblems2116
    @ihavenoproblems2116 2 роки тому

    this is my favourite type of project making i love be doing something at costume editor thats why i love your videos!

  • @parker-pj7es
    @parker-pj7es Рік тому

    at first it didn't work with other youtubers but with you it works that means you're a great
    youtuber

  • @RythbhaiOfficial
    @RythbhaiOfficial Рік тому +1

    Best Scratcher in the world, Love from India!

  • @MeowingSlime
    @MeowingSlime 16 днів тому

    costumes that you draw are fr cool!

  • @timeodelaplace2275
    @timeodelaplace2275 2 роки тому +1

    The scratch cat's whiskers should be used for your Getting over it game! XD To climb

  • @mr.blitzz9041
    @mr.blitzz9041 2 роки тому +1

    Griff: did you know reds my favourite colour?
    Me: yes because every text bubble is red.

  • @kingsclothing2024
    @kingsclothing2024 2 роки тому

    I can't imagine how much work you had to go through this you make great videos that make me feel come just when I hear your voice or look at your videos. (BTW UR VIDEOS ARE GREAT!)

  • @maryamhussain5708
    @maryamhussain5708 8 місяців тому

    Also other tutorials make the player a hitbox then the actual player follows the hitbox. Anyway, this isThe most friendliest tutorial I've seen, keep it up

  • @chronosvidsyt7817
    @chronosvidsyt7817 2 роки тому

    Thank you griffpatch, you've been hepling me out so well since the start of this platforming lesson! I am creating a great platformer! i'll give you credit in the "Notes and Credits" Section! Have a wonderful day! 😃

  • @funraven659
    @funraven659 2 роки тому +1

    Griffpatch, I have a glitch for u to solve; because ur changing frame by 1 whether we are holding right or left, holding down both keys (left and right arrow) will lead to u running on the spot and changing costumes by 1+(frame*2)modulo-16

  • @KewlMreep
    @KewlMreep 5 місяців тому

    5:38 "True if tourching level!" Porfect Gremer 👍

  • @that_one_guy8630
    @that_one_guy8630 3 місяці тому

    hey griffpatch, I found something you might want to include if you end up doing another video in this series. oddly enough, hitboxes sometimes don't work well when trying to wall jump if the hitbox has a border on it! funny that

  • @zbpyoung
    @zbpyoung 9 місяців тому

    thank you for teaching me so much this is awesome and i really like how u created the cat the cycling animation is so OP

  • @starriestars-
    @starriestars- 3 роки тому

    I was eagerly waiting for the animation part! 😄

  • @Chaobai
    @Chaobai 2 роки тому

    Griffpatch is my Scratch tutor now. I've learnt so much from him.

  • @davetech1269
    @davetech1269 2 роки тому +1

    Griff you're awesome buddy, i love your explanations :),cheers!

  • @jensennevells21
    @jensennevells21 Рік тому

    You do not know how helpful this is

  • @mudchute4dlr
    @mudchute4dlr 2 роки тому +1

    Nice!
    Since I’m making it in mobile, im using a joystick and I struggled with the KeyX variable a little but i got there in the end, heres how:
    Instead of the set key x to block, i created a custom block called ‘KeyX to StickX.’ The defenition is shown below:
    ‘If StickX < 0 then set KeyX to -1
    If StickX = 0 then set KeyX to 0
    If StickX > 0 then set KeyX to 1’

    • @DUMB_PERSON_NEAR_ME
      @DUMB_PERSON_NEAR_ME Рік тому

      You can set KEY X var to stick x if you don't know

    • @mudchute4dlr
      @mudchute4dlr Рік тому

      @@DUMB_PERSON_NEAR_ME yeah, realised that a few months later, but never changed my original script

  • @communistpengu171
    @communistpengu171 2 роки тому +1

    Dude your like the bob ross of scratch coding

  • @SabaKhan-kk4kz
    @SabaKhan-kk4kz Рік тому

    I have never made a game so GOOD thank you so much Griff

  • @Ingeniouscraftyguy
    @Ingeniouscraftyguy Рік тому

    Griff you are the teacher who makes understanding easier,keep it uo

  • @SaraiMarrero-qs1vz
    @SaraiMarrero-qs1vz 5 місяців тому

    @griffpatch is so good at scratch instead of not showing people he does it for the people that need help great channel

  • @BaoziYT
    @BaoziYT Рік тому

    You're the best at coding, Griffpatch! I mean, you're the number 1 coder in scratch!

  • @Usdak
    @Usdak Рік тому

    This is so exciting and Ive done it about a thousand times, I lost my last Scratch account and this is the first game I want to recover

  • @VBrick13
    @VBrick13 3 роки тому

    I'm so bad a making platformers, this platformer series helped me out alot! :D

  • @Cricky1010
    @Cricky1010 Рік тому +1

    28:35 There is a typo with ground, it spells "groud" instead of "ground", but it's still a great video!

  • @HanbingLin
    @HanbingLin 6 місяців тому +2

    What a nice day to code.

  • @timeodelaplace2275
    @timeodelaplace2275 2 роки тому +1

    Griffpatch what's funny is that when you start using the frame variable and the sprites scroll to 16, if you quickly click on one of the left and right arrows the character stays on the costume where you left off and if we jump he stays too! 🤣

  • @alexanp7958
    @alexanp7958 Рік тому

    when you delete the scratch cat from the hitbox sprite, THAT FIXED MY COLLISIONS I WAS FLOATING UNTIL THAT POINT ITS A MIRACLE

  • @vertz1515
    @vertz1515 2 роки тому

    5:30 it’s like 1:15AM and I just realized this spelling mistake, but who am I to judge, this is still amazingly useful.

  • @BrainFullOfVoid
    @BrainFullOfVoid Рік тому

    Best person I ever saw on scratch. His game Appel should be on app store

  • @that-random-guy-idk258
    @that-random-guy-idk258 4 місяці тому

    good griffpatch my man even animated the whiskers of scratch cat

  • @GameVibing
    @GameVibing 3 роки тому

    OMGGGGGG I VE been watching his whole tutorial and its been fun but its starting to get old but i fanally made a game! THX SO MUCH!!!!!

  • @Rozza123
    @Rozza123 2 роки тому +1

    help, when im at the steps, if my sprite is in a running animation it uses the collision detection code and doesnt let me run into the stairs can someone please help

  • @insanexeditz6431
    @insanexeditz6431 2 роки тому

    For some reason I don’t have all those costumes what should I do?

  • @Sleepylov
    @Sleepylov 2 роки тому

    better than any else tutorial combined!

  • @6x1000
    @6x1000 6 місяців тому

    I do these, and I follow the way he creates his stuff as precise as I can, even though he says I am free to use whatever I create. I'm sorry about it. It's just my social anxiety. I do love creating these projects and it is super fun to do it.

  • @thecovid-pizzamcpgp4522
    @thecovid-pizzamcpgp4522 3 роки тому +1

    I couldn't switch scenes after I turned iinto the cat. But I changed the position I need to be past for it to switch by 5 and it worked! Thanks for these tutorials (that I somehow understand)! PS: At first I had it at 240 because it looked better to be but ig ur number was better xD

    • @griffpatch
      @griffpatch  3 роки тому

      240 looks nice, but we have to be careful with collisions as you get too far off screen

  • @F4kes0Up_-Acc0Wnt
    @F4kes0Up_-Acc0Wnt 2 роки тому

    Even though his vids are minutes, It's HALF A DAY to me, cause I follow them step by step

  • @jenilavina
    @jenilavina 5 місяців тому +1

    Thank You Griffpatch

  • @YTBlueDream
    @YTBlueDream 9 місяців тому

    Cool!Animations always do good in platformers!Thanks to u Griffy!

  • @Catguyanimations
    @Catguyanimations 6 місяців тому

    Another thing you can do to slow down the animation is to add more of the same frames. This is something animators would sometimes do.

  • @riekenfamilyalbum5832
    @riekenfamilyalbum5832 Рік тому

    I really like the way he says "I, LUV it."

  • @nerder0974
    @nerder0974 2 роки тому

    Best tutorials. He makes them sound much more interesting than regular UA-camrs. 👍👍👍