Это видео недоступно.
Сожалеем об этом.

Player Collisions + Wacky hitboxes! 🐱 Scratch RPG #8

Поделиться
HTML-код
  • Опубликовано: 17 авг 2024
  • Following on from defining our Collision Pins in episode 7, we now finally add the player collision code to make it real! These collision pins support both hairline edge collision boundaries, and half tile collisions!
    We do some clever tricks to invert the hitboxes, support overlapping collision pin regions, and span tile layers! This is one crazy awesome episode, and I just know you are going to love it! Our Scratch RPG game is really shaping up!
    Let's learn to code in Scratch with Griffpatch - Create your own fun Scratch game with these step by step instructions with friendly explanations.
    🚀 Boost Your Creativity with Griffpatch
    The Griffpatch Academy will take you from "Gamer to Game Creator"
    Learn more at 👉 griffpatch.aca... 👈
    😺 Scratch was developed by the Lifelong Kindergarten Group at the MIT Media Lab. See scratch.mit.edu
    👀 Episodes in the series:
    Ep.1 - Craft your dream Scratch Game - • RPG Tutorial | Craft y...
    Ep.2 - Infinite Scrolling & Tiles - • 🐱 Infinite Scrolling &...
    Ep.3 - I AM SPEED - • ⚠️ LAG FREE Scrolling ...
    Ep.4 - Build a LEVEL EDITOR in Scratch - • Code a LEVEL EDITOR in...
    Ep.5 - Split Screen & Multi Tile Assets - • EDIT FASTER ⚡ Tile Tra...
    Ep.6 - Layers & Onion Skinning - • LAYERS 🧅 "Onion Skinni...
    Ep.7 - Collisions Pins - • Collision Pins? 💥📌 Now...
    Ep.8 - Player Collisions - • Player Collisions + Wa...
    🐱 Scratch Starter Projects with Assets - Remix this!
    scratch.mit.ed...
    🐱 Scratch Studio for Your projects
    scratch.mit.ed...
    -------------Video Chapters-------------
    0:00 Intro
    1:13 Try Move - Yes or No?
    2:55 Split movement into two stages
    5:10 Basic Tile Collisions
    9:05 Differentiating Solid / Non solid tiles
    10:39 Collisions across multiple layers of tiles
    12:34 Detailed Pin Collisions
    13:38 Calculating the first pin under the player
    16:10 Colliding with our first pin
    18:50 How to handle the overlapping pin regions
    20:00 Coding pins 3 & 6
    21:59 The top row of pins; 7 & 8
    25:33 Outro

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

  • @ItsrealOJ
    @ItsrealOJ Год назад +169

    when clicked
    say
    "Scratchmazing afternoon I just got home from school we've Finally Got Collisions And I am Better than ever
    More things we need:
    -NPCs
    -Interiors (like coming in and out of houses)
    -Enemies Like Zombies So we can use the final costumes
    -Naturally Generated Trees/Buildings
    -and SOOOOOOOOOOOOOO Much more
    "
    also dunno why you would pin this but why not

    • @ItsrealOJ
      @ItsrealOJ Год назад +19

      OMG GRIFFPATCH YOU ACCTUALLY PINNED IT!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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

      @Don't read profile photo as if no one knoows this trick.

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

      @Don't read profile photo nope, not reading it

    • @PeppermintOSC
      @PeppermintOSC Год назад +5

      @Don't read profile photo ok

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

      @Don't read profile photo ok i wont

  • @blup9997
    @blup9997 Год назад +63

    if griffpatch was a teacher he would be a good one

  • @heywoodfamily82
    @heywoodfamily82 Год назад +12

    I used to think the perfect tutorial never existed until I watched you griffpatch! Thanks for spending your time and life helping us out.😃

  • @omarscomments
    @omarscomments Год назад +17

    Woohoo!!! We're at episode 8!!! And what a journey it has been! Thanks to GRIFFPATCH!!!

  • @caldrenate
    @caldrenate Год назад +15

    With this skill, it won't surprise me if Griffpatch does Ep. 4 of the Text Engine Series...and do it well, too!

  • @TheOfficialFemboyJ
    @TheOfficialFemboyJ Год назад +5

    the good thing about your tutorials is that they can be used for really any programming language as long as you know what you're doing!

  • @Sharp2006
    @Sharp2006 Год назад +5

    It brings a smile to my face when griffpatch posts😊 I’m super excited for collisions 😁

  • @shark-vf3pv
    @shark-vf3pv Год назад +23

    Yessssss 🎉🎉🎉🎉
    Edit: we also need to add room/scene switching (like houses)
    Edit 2: what’s the plan for ep 9?

    • @griffpatch
      @griffpatch  Год назад +10

      Yes we do!

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

      Perhaps full screen editing?
      I do think he mentioned that in a previous episode and it would make sense since he uses “editor > 0” to check for editor instead of “editor = 1”

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

      @@wiseowl83 he might not since in his devlog he planned to have full screen editing but changed it to half screen editing as it was better, but who knows?

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

      I think that in ep 9 it will be showing default layers when placing tiles, like some tiles will automaticlly be on layer three so you don't have to manually do each one

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

      @@writethatdown100 That would be nice.

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

    Yay! Couldnt wait for this. Griffpatch is the best RUclipsr without a doubt!!

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

    I feel like now that we have the collision pins working, we can now expand on this, and explain to us about the different colored pins I assume that was used for things like bridges and ladders. I suppose would be the time to explain about animated tiles for things like the water, and any camp fire logs. Oh yea, we still have to add transitions for inside houses and dungeons. There's just so much to teach about in this series.
    Though I must say, thanks for all of your hard work! You are an excellent teacher & showing us your thought process for the RPG series!

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

      I appreciate it :D

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

      And AI characters! That would be fun.

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

    Amazing tutorial! I can't wait now to create an inventory system with collectible items, tools and crafting, and NPCs that we can talk to and enemies we can fight.
    I would also like to make ladders and bridges functional, and to add buildings that we can go into with intractable tiles inside like signs, furnaces or chests.
    To top things off we could add animated and moving tiles, but besides that I really think these things will turn this RPG engine into a full game.

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

      So many thing hehe :)

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

      @@griffpatch Hi Griffpatch :) I loved you videos and tutorials :)))

  • @aarizkhan9101
    @aarizkhan9101 Год назад +5

    Loved the video griffpatch! Can't wait for episode 9! Keep up the good work!

  • @tanulearns
    @tanulearns Год назад +8

    ❤ Another amazing video by the legendary griffpatch! Here are some ideas for the next few episodes:
    Adding a text engine
    Activating the sword costumes
    NPCs
    Interiors
    Enemies and Health Bars
    Intro screen
    Full screen editing
    Keep going, you rock!

  • @Aakif.Nawshad
    @Aakif.Nawshad Год назад +2

    Wow, I used scratch a lot as a kid and I still do. You were the source of my inspiration since the beginning, I watched many of your tutorials and it's just wonderful that you continue this journey. Thank you griffpatch!

    • @griffpatch
      @griffpatch  Год назад +5

      So cool, thank you

    • @Aakif.Nawshad
      @Aakif.Nawshad Год назад +5

      @@griffpatch wow, he replied, that was my lifes mission.

  • @EndaWida
    @EndaWida Год назад +2

    What i think griffpatch's next tutorials on this will be:
    -NPCs
    -Houses + Furnishing
    -Block animation
    -How to make a game out of this
    -Coins?
    -Effects (light, dark, water, etc.)
    -4th layer!?!?
    -Layer climbing
    -Level editor 3!?!?
    -uuuhuh more
    yep totally accurate...

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

      I thought of a fourth layer as a pin collection for all the pins, then you only have to check one layer for pins instead of 2, slightly faster.

  • @1080GBA_SC
    @1080GBA_SC Год назад +3

    Griffpatch! Your video made my day!! Your method of coding those hitboxes amaze me!

  • @Ninjabuster2k
    @Ninjabuster2k Год назад +16

    I just can't wait for the text-engine support tutorial!
    Edit: Also when will we cover animated tiles like the water?

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

      Just copy the code for text engine to your game

    • @TheOffspringy
      @TheOffspringy Год назад +2

      @@vaguedestruction bro no need to be so toxic abt it

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

      @@TheOffspringy yeah I agree that was really mean

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

      @@TheOffspringy ok sorry its just you can copy and paste code its not hard
      Edit: whAt ToxEDIC i DifNT b3 ToXiC noT Lik3 I eDitEd mY Th1ng

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

      For animated sprites you can do (forever:
      next costume
      wait(fps in seconds) seconds)

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

    i always like how chaotic the intro is and then he says: "so lets get scratching!" and that always gets me exited!!

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

    I am going to follow this tutorial NOW. Was just playing an instrument and saw this notification. really looking forward to making this.

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

    Yes! I have been waiting so long! Thank god this was uploaded early! I feel like the next episode might be auto layering!

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

      Oh ya! Forgot about that feature.

  • @tommyanepicgameer
    @tommyanepicgameer Год назад +3

    YAY this is the best thing! 🎉 Thanks Griffpatch!

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

    Wow i never imagined i would go this far, thanks for the tutorials!

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

    so cool just finished tutorial 7 and im loving this im enjoying it so much i know im 7 months late but still XD whenever some1 likes this now ill remember what a great teacher griffpatch is!!

  • @grupoultimointentoofficial5428

    griffpatch i love playing your games and i've been doing your Scratch RPG tutorials and i am almost done.

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

    Best one yet. When griffpatch makes merch, we NEED a t shirt that says 'Bug SQUASHED!'
    It justs seems cool ok?

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

    The g in griff patch stands for ‘great editing’

  • @sonickirb
    @sonickirb Год назад +2

    I have been waitting sooo long to add collisions, before this episode i even tryed coding it myself! Thank you SO much griffpatch!!
    Edit: You are the best griffpatch!

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

      You're very welcome!

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

      @@griffpatch Hey griffpatch! I really want to make a proper lift, please teach me how to code a lift

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

      @@griffpatch I just remix lift projects and add features, but teach me how to do a full lift by scratch

  • @vaguedestruction
    @vaguedestruction Год назад +5

    griffpatch, soon we're gonna have to add animated tiles like water and campfires. Right now, you can just place any frame of the animation and it doesn't even animate

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

      Don't worry, I can tell you how to do that.

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

    I can't wait to have a new episode of the text engine serie ! Please do episode 4 !!

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

      to be honest, technically the text engine series doesnt exist. its in the scratch rpg series

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

      @@zachmann2911 yes :)

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

    Finally, The better collision solution!

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

    8:08 idk why but "the set solid to 1" is making my player a non-moving character

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

    I love the approach teaser at the beginning.

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

      Thanks! I poured everything into this video - It's always hard to think of a good title, thumbnail to draw people to the video, and then an engaging first 30 seconds or so to keep them from clicking away! :)

  • @azzamshahzad
    @azzamshahzad Год назад +2

    The thumbnail XD

  • @CorranEveryone
    @CorranEveryone Год назад +2

    Collisions YAY!😆

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

    THIS SERIES IS GETTING AWESOME

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

      Thank you

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

      @@griffpatch hey im stuck, i cant get the basic collisions to work for some reason

    • @user-dk8yz9io4h
      @user-dk8yz9io4h 6 месяцев назад

      me too@@F1pyrotechnics

  • @ramzeydridi2471
    @ramzeydridi2471 17 дней назад

    This is the moment of truth says Griffpatch, then an ad comes on...

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

    good collisions Griffpatch :)

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

      How about good RPG like
      -NPC move & direction
      -Opening gate or door animate
      -Campfire animate
      -Inventory & Survival health
      -Joining RPG player
      good luck😄😄😄

  • @ulricoiho420
    @ulricoiho420 Год назад +2

    your thumbnails are always the best

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

    PLEASE STOP I HAD ENOUGH I NEED THE LAST OF THE TEXT EGINE TUTORIALS PLEASE!

  • @FeniteFr
    @FeniteFr Год назад +3

    OMG we have already a new episode woohoo !!
    I haven't followed the episode 7 yet : I try to do that we can zoom in and zoom out but that's VERY HARD !! I didn't anticipate that

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

      Good on you! That's a cool feature to add!

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

    This is really cool and it actually works! Thanks for making tutorials!

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

    I'm finally caught up and WOW was that a journey! I'm definitely using this for my project (don't worry I'll include credit)

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

    I like that he puts easter eggs in his videos. Like or or or guy.

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

      I never see them !

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

    Mr Hero's head must hurt.

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

    (16:16) There Guy!

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

    this is so cool keep going!

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

    Bro this is the teacher we all wanted

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

    Thanks! In my old projects I detected collision with the color of sprites... that is way better!

  • @NotNonaSoft
    @NotNonaSoft 9 месяцев назад +7

    nah that thumbnail weird

  • @labrosmatsas
    @labrosmatsas Год назад +2

    I can't wait for the next tutorial!!!

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

    I caught the platformer character at 16:17, and a meow at 21:56

  • @-CosmoCode
    @-CosmoCode Год назад

    griffpatch: releases a new tutorial
    fellow scratchers: WOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOWWWWWW!!!!!!!!!!!!!! =D

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

    Scratch: It's easy for stuff it's designed for, otherwise it's hard.

  • @Metromex_386
    @Metromex_386 Год назад +3

    Wow! The series are getting so fun and exciting!
    There is is still the text engine and doors collision. Also, I think you made a mistake in your editing and spelled a word wrongly.
    Nvm that, Please continue your hard work in your videos! 🙏

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

    awsome! Super collisions!

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

    Scratchers on a project sometimes:
    How do I do this??
    *opens RUclips
    Hello fellow scratchers! *im griffpatch*

  • @user-td8gm1tu1q
    @user-td8gm1tu1q Год назад

    This is SO awsone but what I would really like to learn how to do is tiles that damage the character or inflict negative status effects!

  • @kotucheniy5527
    @kotucheniy5527 5 месяцев назад

    there is a bug with layer 3: when you ope editor and walk a little so that the 3-layer tile gets under the palette, it goes over it.
    to squash this bug, you need to move the whole "if editor>0" block to the "when i recieve paint layer 3" script, and place it under the paint layer 3 custom block.

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

    Finally The video comes yay!

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

    16:18 found a little red guy

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

    "Flowers are also solid!"
    - patch griff, 2022

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

    This thumbnail will never be beaten.

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

    Hi! I'm a Brazilian Scratcher user and I follow you here, I like your work on youtube. I would like to ask you to recreate the Lemonoids game, but this time do it in an open map. I intend to mount planetary systems on it. Thank you very much in advance! Thanks!

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

    I made it so far in this series and I taught I have to manually input the pin!

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

    when ⛳clicked
    say [close enough...]

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

    the most wacky thumbnail for the most wacky hitboxes

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

    THIS IS THE BEST DAY OF MY LIFE!

  • @widyaperwitasari1983
    @widyaperwitasari1983 3 месяца назад +1

    Yayayaya i can ...... throught the tiles😂😂😊

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

    Episode 2 felt like it came out yesterday.... And now its episode 8!!!!!!!!!

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

    16:17 found the cube!

  • @zayahIGA
    @zayahIGA Год назад +2

    I found a bug where you can walk into a tile a bit then get completely trapped from moving. how can I fix this?

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

    yeah he is a great tutor he has teached me so many things😀

  • @TimTanky_
    @TimTanky_ 9 месяцев назад

    These hitboxes kind of represent the ones in Geometry Dash!

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

    Yeay ! I love this series and all other ! So cool !

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

    Griffpatch you should do a series were you come up with a game, make it and squash the bugs

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

    Hey griffpatch, if possible, could you show a short tutorial on how to detect if a clone is touching another clone? I need this for my game and it needs to work with unlimited clones. Not sure if it's possible but if it is and you make a tutorial on it, I buy channel membership :)

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

    Can you do a guide on the different sections of code and maybe go over what each block of code does?

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

    Yes! Another episode!

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

    21:45 I have no bugs in my code, checked that a few times. It might be the colour contrast update or user stupidity, but I can only move up and down. Any fix?

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

    i need that thumbnail cat as my pfp

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

    Wow! i thought this tutorial was going to be complex!
    Also i have a suggestion, when you find a tile, can you make the editor menu scroll to where its located?

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

      Will it kind of is, but I did my best to make it feel simple

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

    The Scratch Cat has gone to Gym!

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

    Hi griffpatch! I love your videos. You do such a great job making tutorials! Maybe something that could be cool is if we added sound effects like walking on the grass and running into objects, just an idea. Have a great day!

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

      Also it would be cool to add the default layer feature!

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

    My likely for next few episodes: (9-12)
    Auto Layering - Controled by player in a way like the pins.
    Full Screen Editior
    Sub World/Area (Going in houses)
    Ideas: for 13-15
    Random Spawning of large structurs
    Entity spawning
    Attack Scripting + animation

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

    something that I would like to say, if I already made a tile based game by myself, and found this series, I would like to just watch 7 and 8. which you also did, what I mean is you can just watch 7&8 instead of the whole series

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

    Nice, Griffpatch!! Keep it on!

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

    When you walk up to tile 117's right, there is a big gap, and also you can go into its top. But tile 115 is fine.

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

    YEEEEES, I want to do scratch now!

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

    Can you show us where to put the collision pins in the editor?

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

    Is there a way to code 25 pins instead of just 9?

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

    You could publish the collision pins data for the default tileset so that we don't have to do it as well.

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

    Hi Griffpatch. My program is not working yet. when you are going from right to stone u have a big gap. Pls tell me in your next video how to fix this (or show all scripts for all sprites) PLEASE

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

    Griffpatch do you need to put pins on the blank tiles too?

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

    I need griffpath. WE need griffpatch HE. Needs griffpatch!

  • @user-hr2nc6nn2c
    @user-hr2nc6nn2c 5 месяцев назад

    I can't seem to get the basic collision script working. I've looked over my code and made it identical to yours multiple times. I think I messed up on something in one of your other tutorials.

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

    If you could add save codes, that'd be great! Awesome tutorials - keep up the great work!

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

    It's very coll!!! 😆😆😆

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

    Can't wait for handling bridges and ladders! I suppose this will use the collision pins with values higher than 1? Since the collision check only saves the highest pin number across all layers, perhaps you're gonna make pin no. 2 mean non-solid? This way, it overrides pin no. 1 during the collision check, allowing the player to "cut" through walls that would otherwise be solid.
    What I'm truly puzzled about is how you handle the stamp layering with bridges. In one of the devlog videos, the player could be stamped below the bridge when walking under it, or above when walking on top of it! If my guess above about the ladders and bridges collision is correct, then maybe when the player steps on a collision pin no. 2, the player's stamping order is also changed?

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

    my qustion is, with the LevelStore, and the collision meta list.. how do you go about making different levels / collision pin grids and saving them so that when the game loads from fresh again.. all the level "designs", collision meta , layer placement of objects etc etc is already there? can you read from file or something?

  • @DMTheBananaMan
    @DMTheBananaMan 9 месяцев назад

    Does the "x + 8" in the "[ get grid index (x + 8) (y + 8) ]" have to be 8? Since the player sprite I'm using is a little bit wider than the player sprite you use, I have to set it to 14, which looks fine for collisions to the right, but I still go through the wall a little when going to the left. If I just set it to 8, I go through the wall a little bit on both sides. I don't think I did anything wrong, it's just that the player sprite is wider than the one you used.