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