How to Fix A Scratch Bug šŸ™ƒ - Classic Platformer Wall Jump

155,430
0
Published 2022-03-11
Every Scratcher encounters bugs in their Scratch code, and I am no exception! We're all human after all :) - Our classic platformer has a bug in the wall jumping code, and I use that as a showcase of how the bug fixing process works, from gathering information, to looking for clues, bug repro (reproduction), understanding, fixing, and testing! So hold on tight, and let's get Scratching!

My tutorials are for all budding game & software developers using Code Blocks. Scratch On guys!

šŸ‘€ Next Episode #12 - Ā Ā Ā ā€¢Ā FunĀ withĀ RotatingĀ PlatformsĀ |Ā 12.Ā Scr...Ā Ā 
šŸ‘€ First Episode - Ā Ā Ā ā€¢Ā CodeĀ aĀ PlatformerĀ GameĀ |Ā 1.Ā TheĀ BasicsĀ Ā 
šŸ‘€ Playlist - Ā Ā Ā ā€¢Ā CodeĀ aĀ PlatformerĀ GameĀ Ā 

There's no studio for this video :D

ā­ Channel membership with perks - youtube.com/channel/UCawsI_mlmPA7Cfld-qZhBQA/join
ā¤ļø Scratch Addons - scratchaddons.com/
šŸ“¹ Video Editing Software - techsmith.z6rjha.net/5bajbo

-------------Video Chapters-------------
0:00 Intro
0:26 Phase 1 ā€“ Bug reproduction
1:41 Phase 2 ā€“ Documenting the Bug
2:31 Phase 3 ā€“ Understanding the Bug
3:47 Phase 4 ā€“ Fixing the Bug
5:33 Phase 5 ā€“ Testing
6:18 Phase 6 ā€“ Celebratory phase
6:28 O

All Comments (21)
  • @Resseguie
    It's great to learn good coding techniques like this early on. Being disciplined to reproduce, document, and go back to test is key to successfully coding more difficult projects. One thing I'd add for new programmers: sometimes it's helpful on the REPRO step to figure out the SIMPLEST way to reproduce the bug to avoid any other variables that might make it hard to squash. In this case, you can reproduce the wall slide bug almost anywhere. But imagine it was deep in the game somewhere, making it hard to quickly get there and test. In a case like that, I would recommend creating a new level where you can reproduce the bug easily right at the start. It will make your debugging faster because you can run test more quickly. And sometimes just making it simpler actually helps you figure out what's going wrong.
  • @lasercatto
    Thumbnail Scratchy will haunt my dreams
  • @FeniteFr
    7:09 wow I love the effect that was created with the "scratch effets that pops" tutorial šŸ¤©
  • @chiroyce
    Amazing step-by-step tutorial!! This is very useful for anyone trying to fix bugs, in Scratch, and other programming languages!
  • Griffpatch you are my favorite scratcher! Any tutorial with you calms me down and makes me scratch even more! Keep scratching and do whatever tutorial you ever want! :)
  • @RishanEdits10
    TYSM Griffpatch, This is very useful for anyone trying to fix bugs, in Scratch. :) you are amazing!
  • @TheWannaBe
    Griffpatch is way better than other tutorials for this reason: He actually explains concepts and bugs, why they happen, and how to fix them! Other tutorials are just: Please copy block by block, which isn't very useful when you want to add the concepts into another project!
  • @snelake
    Another tip: you donā€™t have to fix all bugs, you can if you want to, and it is good to at least understand why they happen, but if it doesnā€™t affect the average playthrough, it should be fine to leave in. For example, if there is a really hard glitch that can only be done on one or two levels, it should be fine to leave in, as it wonā€™t be disrupting anyoneā€™s gameplay. But if the glitch regularly causes things that should work not to work, it should definitely be fixed.
  • @pumpkinpiie486
    ok so is it me or is his drawing's are just so cool like how do you make scratch cat into a whole spider! its terrifying and very creative
  • @1080GBA
    Griffpatch your tutorials always makes my day better šŸ˜ƒ
  • I did not even know about the bug. I did want to add moving platforms; so lovely you are covering that, hopefully, you also cover how to add more levels into the game like level 1, level 2, etc.
  • @bigbricks1003
    Wow! This helped me a lot! I used the same steps fix a bug I was trying to fix in my project! Keep up the great wok Griffpatch! :D
  • @Erincutioner
    This is my fave video, I like these videos aka tourtials. it helps me improve in scratch, I alsways have bugs and stuff that a normal scratchers have, I knew this channel since 2019 (I think)!
  • @nighttime0816
    OMG!!! griffpatch you did so well! I need thousand of years to do this!! Good job!! Keep going!!!!
  • @soapfaces
    Iā€™ve had this so many times! So good to see a fix!
  • I have a bit of a compromise for leaving this bug in and making sure it doesn't impede on gameplay. For the IF statement you just added, put an or there and for the right side, put "Not pressing Z and X key" there. (Or whatever keys you want) Now, in order to trigger the bug, you need to press two keys together!
  • @lasercatto
    I'm about to end my membership (hopefully temporarily) for a while, but this looks AMAZING! Glad to support. ~ LaserCat
  • @snehashisplays
    No One Can Teach Scratch Better Than Him. Love Your Videos ā™„ļø
  • I hope he makes an episode 14 on removing the enemy sprites when we squish them and not reappearing when we go to a different Scene and back. I just feel like using the technique we did for the collectables. Using a Null room but if Griffpatch can make a new way, that would be nice.