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

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



Game:
Scratches (2006)
Category:
Tutorial
Duration: 31:56
351,441 views
6,552


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 - https://youtu.be/swWi1ynPbdo (Early Access)
๐Ÿ”ฅ Bug Fixes - https://youtu.be/vqaKQzZLAes

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 - https://www.youtube.com/channel/UCawsI_mlmPA7Cfld-qZhBQA/join

๐Ÿฑ Scratch Studio for this tutorial - https://scratch.mit.edu/studios/31052531/

๐Ÿ‘€ Part 1 - https://youtu.be/M1c5TcdITVs
๐Ÿ‘€ Full Episode Playlist - https://www.youtube.com/playlist?list=PLy4zsTUHwGJKolO9Ko_j6IStFIJnTYBul
๐Ÿ‘€ Quick and Fun Tutorials - https://www.youtube.com/playlist?list=PLy4zsTUHwGJKByTn_qV76oTpEYGczqEb_

โค๏ธ Scratch Addons - https://scratchaddons.com/
๐Ÿ“น Video Editing Software - https://techsmith.pxf.io/c/2682566/506622/5161

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




Other Videos By griffpatch


2022-05-07Quick Fixes for Raycasting Ep.2-6 with E7 preview!
2022-05-01Ultra Fast Colour Image Scanner | Scratch How-to Tutorial
2022-04-17How to GET COLOR value at point | Scratch Tutorial
2022-04-12ULTRA FAST Raycasting in Scratch - Unmissable E6 Update
2022-04-04Star Power Up | Making Super Mario Game in Scratch E20
2022-03-27AMAZING HEALTH BARS in Scratch - Easy Scratch Tutorial
2022-03-19Fun with Rotating Platforms | 12. Scratch Platformer Tutorial
2022-03-11How to Fix A Scratch Bug ๐Ÿ™ƒ - Classic Platformer Wall Jump
2022-03-04CRAZY COOL JOYSTICKS ๐ŸŽฎ - How to make your Scratch Games Mobile Friendly
2022-02-13Collectables & Enemies that Chase | E5. Crazy Fun Raycasting
2022-02-07Sprites Behind Walls (Depth Sorting) | E4. Crazy Fun Raycasting
2022-01-31Sprites in a 3D World | E3. Crazy Fun Raycasting
2022-01-19Crazy Simple Raycasting E2 - ๐ŸŽฎ How to make awesome 3d games in Scratch
2022-01-12Crazy Simple Raycasting E1 - ๐ŸŽฎ How to make awesome 3d games in Scratch
2021-12-30Coding Platformer Enemies | 11. Scratch Platformer Tutorial
2021-12-18Awesome Number Counters ๐Ÿ’ฏ | Exciting Scratch Game & How to Tutorials
2021-12-12Waypoints, Game Over & Game Menu | 10. Scratch Platformer Game
2021-12-06Can you speedrun Griffpatch? The Scratch speedrun challenge!
2021-11-28Amazing 3D Sprite Layering ๐Ÿฑ | How to quickly depth sort sprites in Scratch
2021-11-21Scratch Platformer Game | 9. Collectables, Keys & Doors
2021-11-14WANT AMAZING PEN EFFECTS? Surprising ways to easily up your game | Scratch Tutorial



Tags:
scratch coding
scratch programming
scratch game
scratch 3
griffpatch
Pen
Stamping
Tutorial
Help coding
scratch coding games
scratch
scratch tutorial
scratch tutorials
how to scratch
coding for beginners
scratch 3d
scratch games
scratch 3d games
scratch 3d tutorial
scratch raycasting
scratch enemies
scratch 3d enemies
game development
programming
sprite sorting
scratch sort



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.