Sprites Behind Walls (Depth Sorting) | E4. Crazy Fun Raycasting

Sprites Behind Walls (Depth Sorting) | E4. Crazy Fun Raycasting

How to depth sort entities in a raycast 3d scratch game. In episode 4 we learn to raycast to a list, depth sort that list shuffling in our entities as we go, and then draw from our list to render the scene. Wow - and it's looking real spooky! This is an awesome tutorial for creating that 3d game you've all been wanting to make! 👀 Next Episode #5 -    • Collectables & Enemies that Chase | E5. Cr...   (Early Access) 🔥 Bug Fixes -    • Quick Fixes for Raycasting Ep.2-6 with E7 ...   Don't forget to submit your projects to the studio linked below by commenting the project URL in the studio comments. My tutorials are for all budding game & software developers using Code Blocks. Scratch On guys! 🚀 Boost Your Creativity with Griffpatch The Griffpatch Academy will take you from "Gamer to Game Creator" Learn more at 👉 https://griffpatch.academy 👈 😺 Scratch was developed by the Lifelong Kindergarten Group at the MIT Media Lab. See http://scratch.mit.edu 🐱 Scratch Studio for this tutorial - https://scratch.mit.edu/studios/31052... 👀 Part 1 -    • Let's make the best 3D Game in Scratch! | ...   👀 Full Episode Playlist -    • Crazy Fun Raycasting (3D Scratch Tutorial)   👀 Quick and Fun Tutorials -    • Quick and Fun Scratch Tutorials   ❤️ Scratch Addons - https://scratchaddons.com/ 📹 Video Editing Software - https://techsmith.pxf.io/c/2682566/50... -------------Video Chapters------------- 0:00 Intro 0:42 Behind a Wall…? 1:38 Raycast into a list 7:22 Drawing the Scene from the Lists 11:29 Ordering the lists by Distance 13:35 Insertion Sort 18:04 Include Entities in the Sort 20:20 Handle Entity Drawing from the List 24:34 Entity Brightness 25:43 More Entities 29:41 Fixing the Level Colors 30:27 Outro