Get real, active and permanent YouTube subscribers
Get Free YouTube Subscribers, Views and Likes

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

Follow
griffpatch

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 | E...   (Early Access)
Bug Fixes    • Quick Fixes for Raycasting Ep.26 wit...  

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!

⭐ Channel membership with perks    / @griffpatch  

Scratch Studio for this tutorial https://scratch.mit.edu/studios/31052...

Part 1    • Crazy Simple Raycasting E1   How to...  
Full Episode Playlist    • Crazy Fun Raycasting (3D Scratch Tuto...  
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

posted by annemoodypt