Raycasting 101 (sprite-based)

Raycasting 101 (sprite-based)

by PutneyCat

👁 20,698 ❤️ 837 ⭐ 744 🔄 52
Created: May 17, 2020 Last modified: Apr 13, 2021 Shared: May 17, 2020

Description

This is aimed at anyone wanting to try the "easy" sprite-based method of raycasting. It does things a little differently from the Scratch Wiki's version: the base raycaster is simpler in some ways (no lists or broadcasts) but it does use a couple of trig functions. For a tutorial on the more complex list-based version, try https://scratch.mit.edu/projects/337452463/ SVG scratchblocks created using the terrific https://scratchblocks.github.io/ Eiffel tower pic from https://parisworkingforart.wordpress.com/2009/12/31/the-eiffel-tower/#jp-carousel-50

Instructions

Spacebar or click screen to progress through tutorial. Full screen recommended. You can move around the map with the arrow keys in the early part of the tutorial, and at the end. To use these scripts for your own raycaster, delete all the sprites beginning with a "T" (for tutorial), and connect up the green flags in the remaining four (the first four).

Project Details

Visibility
Visible
Comments
Enabled

More Cool Projects

Project thumbnail
View Project

BF Vs Mickey Mouse - FNF

by SuperSonicStudio

Project thumbnail
View Project

Dateblocks Band 4 (Aidans Version) (ITS HERE!)

by AidanScratchMaker

Project thumbnail
View Project

Box2D - Car v0.3

by griffpatch_tutor

Project thumbnail
View Project

NexusGPT | Artificial Inteligent Special

by kokofixcomputers_sa

Project thumbnail
View Project

New super mario bros online

by JRHGames

Project thumbnail
View Project

UNDERTALE battle engine V3

by aboabk

Project thumbnail
View Project

Scratch Cat Becomes Uncanny (Extended Template)

by master_slime09

Project thumbnail
View Project

Softbody physics

by Vadik1

Project thumbnail
View Project

|| Intro for _-particle-_

by nanakusa03

Project thumbnail
View Project

UNDERTALE

by BluePheonix25

Project thumbnail
View Project

[Undertale] - The Final Experiment

by LucasBr003

Project thumbnail
View Project

Uncannyblocks band but Different (10Non - 1Dec)

by OmegaGolemGame

Project thumbnail
View Project

Java OS (Classic 1.0.5!)

by ExperiTeam

Project thumbnail
View Project

Russian Alphabet Lore RELOADED (RALR) Full Pack!

by SpaceMaxGamer

Project thumbnail
View Project

Super Tumble Glitchy Run | スーパータンブルグリッチラン (v1.2) | #all #games #trending #art #music

by MunaAlaneme4th

Project thumbnail
View Project

椅子鳥GAME -公式アート-

by mikorin

Project thumbnail
View Project

ACT 2 TEST++

by MasterL0

Project thumbnail
View Project

Numberblocks Band Quarters 4 (Version 2 + For MrBond,Band Version)

by atakan9

Project thumbnail
View Project

Rosalina Sprites

by Spriteman22

Project thumbnail
View Project

青の塔33階

by sakaryuu

Project thumbnail
View Project

Spamton Neo fight Snowgrave

by tripoid

Project thumbnail
View Project

Zoonoc Thee Hodgepog

by RealDarkNach0s

Project thumbnail
View Project

The PBS Alphabet song (Now with vocals!)

by trizzle314

Project thumbnail
View Project

[HOTEL+] Roblox Doors Death Message (Guiding Light Generator)

by mocca200