Player Collisions + Wacky hitboxes! 🐱 Scratch RPG #8

griffpatch
griffpatch
162.5 هزار بار بازدید - 13 ساعت پیش - Following on from defining our
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.academy/ 👈 😺 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 your dream Scrat...   Ep.2 - Infinite Scrolling & Tiles -    • 🐱 Infinite Scrolling & Tiles - Scratc...   Ep.3 - I AM SPEED -    • ⚠️ LAG FREE Scrolling in Scratch 🐱 RP...   Ep.4 - Build a LEVEL EDITOR in Scratch -    • Code a LEVEL EDITOR in Scratch | RPG ...   Ep.5 - Split Screen & Multi Tile Assets -    • EDIT FASTER ⚡ Tile Tracing | Scratch ...   Ep.6 - Layers & Onion Skinning -    • LAYERS 🧅 "Onion Skinning" in Scratch ...   Ep.7 - Collisions Pins -    • Collision Pins? 💥📌 Now that's clever!...   Ep.8 - Player Collisions -    • Player Collisions + Wacky hitboxes! 🐱...   🐱 Scratch Starter Projects with Assets - Remix this! scratch.mit.edu/projects/725577493/ 🐱 Scratch Studio for Your projects 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
13 ساعت پیش در تاریخ 1403/07/11 منتشر شده است.
162,524 بـار بازدید شده
... بیشتر