Player Collisions + Wacky hitboxes! 🐱 Scratch RPG #8

Channel:
Subscribers:
426,000
Published on ● Video Link: https://www.youtube.com/watch?v=ZvQ0Gv4I2Cc



Game:
Scratches (2006)
Category:
Tutorial
Duration: 26:29
110,277 views
3,358


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.

⭐ Early Access and more - Join the channel membership:
https://www.youtube.com/channel/UCawsI_mlmPA7Cfld-qZhBQA/join
or, support me on Patreon - https://www.patreon.com/griffpatch

👀 Episodes in the series:
Ep.1 - Craft your dream Scratch Game - https://youtu.be/5lof-Nu1VVE
Ep.2 - Infinite Scrolling & Tiles - https://youtu.be/g8xsQx-XkYE
Ep.3 - I AM SPEED - https://youtu.be/uxIH0W4S6LY
Ep.4 - Build a LEVEL EDITOR in Scratch - https://youtu.be/nvB9chNNl2s
Ep.5 - Split Screen & Multi Tile Assets - https://youtu.be/dgMlWZEaPek
Ep.6 - Layers & Onion Skinning - https://youtu.be/wWjot1vJBf0
Ep.7 - Collisions Pins - https://youtu.be/xSt7aF8MNn8
Ep.8 - Player Collisions - https://youtu.be/ZvQ0Gv4I2Cc

🐱 Scratch Starter Projects with Assets - Remix this!
https://scratch.mit.edu/projects/725577493/

🐱 Scratch Studio for Your projects
https://scratch.mit.edu/studios/32038156/comments

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




Other Videos By griffpatch


2023-02-25"Save My Game!" 💾 Data Serialization & Escaping in Scratch
2023-02-10"Mouse Pointer Lock" in Scratch? âšĄī¸ TurboWarp Experiments! (Raycasting E9)
2023-01-28Unlock 3D Mouse Controls in Scratch! 🤩🐭 - Raycasting E8 Tutorial
2023-01-13Griffpatch vs Scratch JR: Flappy Bird Challenge!
2022-12-24Bouncing Particle Effects (part 2) đŸ’Ĩ Scratch Tutorial
2022-12-19Explosions, Particle Effects & Fireworks đŸ’Ĩ Scratch Tutorial
2022-12-15Just Too Satisfying âĒ REVERSE SNOW in Scratch! #shorts
2022-12-10Impossible "Multi-Touch" Joysticks!!! 👉📱👈 Mobile Friendly Scratch Coding Tutorial
2022-11-25How to Animate Game Worlds in Scratch âšĄī¸ FAST! - RPG #9
2022-11-12🧀 CHEESE - Updating Paper Minecraft - Scratch Tutorial
2022-11-05Player Collisions + Wacky hitboxes! 🐱 Scratch RPG #8
2022-10-29Collision Pins? đŸ’Ĩ📌 Now that's clever! 🐱 Scratch RPG #7
2022-10-22Health Bars Reimagined đŸ’Ĩ No Pen...?!? 👍 Scratch Tutorial
2022-10-15LAYERS 🧅 "Onion Skinning" in Scratch | RPG Tutorial #6
2022-10-07EDIT FASTER ⚡ Tile Tracing | Scratch RPG Tutorial #5
2022-09-24Code a LEVEL EDITOR in Scratch | RPG Tutorial #4
2022-09-17âš ī¸ LAG FREE Scrolling in Scratch 🐱 RPG Tutorial Episode 3
2022-09-12🐱 Infinite Scrolling & Tiles - Scratch RPG Tutorial Episode 2
2022-09-02RPG Tutorial | Craft your dream Scratch Game | 1. The Player â›šī¸
2022-08-26EPIC SPRITE TRAILS | Easy Coding Tutorial to Spice up your Game
2022-08-19Code AI Swarms, Flocks & Hordes | Boids Scratch Tutorial



Tags:
scratch coding games
scratch coding tutorial
scratch collisions
scratch collide
tile based collision detection
tile based collision
rpg collision scratch
Collision pins
griffpatch collision
grid collision detection
grid based collision detection
scratch grid
scratch tile game
coding collision
how to code collision in scratch
scratch rpg tutorial
scratch rpg game tutorial
level editor
scratch grid list
rpg scratch tutorial
scratch.mit.edu



Other Statistics

Scratches Statistics For griffpatch

griffpatch currently has 24,500,415 views spread across 87 videos for Scratches. There's over 1 day worth of watchable video for Scratches published on his channel, roughly 49.28% of the content that griffpatch has uploaded to YouTube.