How to make a simple 3d game (Raycaster) in Scratch. This is part 1 of a short series where we build a level arena/maze and learn how to code player movement including arrow keys and WASD for strafing. Wall collisions are also handled, and we dig a big deeper in to how to best handle getting snagged on a wall. Awesome!
My tutorials are for all budding game & software developers using Code Blocks. Scratch On guys!
🐱 Scratch Studio for this tutorial –
👀 Episode 2 –
👀 Full Episode Playlist –
👀 Quick and Fun Tutorials –
⭐ Channel membership with perks –
❤️ Scratch Addons –
📹 Video Editing Software –
————–Video Chapters————–
0:00 Intro
1:05 Part 1 – Level & Navigation – Drawing the Level
3:04 The Player
4:08 Coding the Player – Setup
5:03 Player – Movement
6:48 Player to wall collisions
9:33 Player Hitbox
11:10 Sticky Walls / Wall Snagging
15:24 Player Strafing
17:20 Outro
Leo barenholtz
17.06.2022I’m sorry I got it fixed it was so simple all I had to do was change the costume to face straight left
Franky's Silly Videos
17.06.2022Umm. why does they add to x (0) y (0) happen 2 times? (That happened on mine too when i was doing the tutorial)e
SaloKin 09
17.06.2022I need help my player is stuck and it goes back and foward, it can turn but if its looking down it doesent move
Jenay Elder
17.06.2022it wont work
crule shot
17.06.2022idw but the arrow one don't follow the order… after the new try move….
Sawbones
17.06.2022i must not’ve done the wall shimmy right, because mine just gets stuck… again
EliRRasOnScratch
17.06.2022I disliked by an accident 🙁
Bowser Da Koopa YT / Pray For Ukraine
17.06.2022Isn't there a problem where if someone goes backwards they can clip through the walls?
suscribete sin ninguna razon ;)
17.06.2022define move (joystick y)
move (2 * (joystick y)) steps
move (<key presssed?> – <key pressed?>)
S̷̰͛į̶̐l̸̨̽v̷̭̈e̷̹̎r̷̞̔
17.06.2022How would i go about making different levels
Stanley legarza
14.06.2022For some reason the screen wasn't big enough for my map :/
Idk why though
Madeline Sengthavy
14.06.2022Wow, this looks cool!
PunGuy
14.06.2022i accidentally deleted the whole player sprite while watching part two so now im back here
toca cake
14.06.2022it do not work pls hlep
jeff jefferson
14.06.2022this isn't true 3d. you made a game that had true 3d, a laser tag game. could you show us how to do that? because otherwise it's just a 2d game projected to look 3D
jeff jefferson
14.06.20227:42 would it be possible to use a circular hitbox? that way the rotation isn't affected that way?
Riachthebacon
14.06.2022This is a little complicated for me but its nice
Riachthebacon
14.06.2022It goes from a 2d game to a 3d masterpiece complex in a simple cut
SBDC_YT
14.06.2022Please make a verson for people who made their characters a circle
mihail sergiti madan
14.06.2022thank you griffpatch! without you, I don't know what to do!
prestongovnoseston
14.06.2022Game look backrooms
GA_Gaming
14.06.2022Dude your the only guy who actually made me somewhat understand whats going on in scratch tutorials
Sahil Das
14.06.2022just so you know wall strafing does not work for me
Trường Xuân Official
14.06.2022Backroom.
rubb
14.06.20223d pac-man?
Flame Fox101 Playz
14.06.2022when i did the try to move block added it and now i can phase through walls 😐
OrangeMC
14.06.2022Nice dude Will done
GamerTronky
14.06.2022I'm remaking it in python
meme tech
14.06.2022typo in description – "dig a big deeper"
ScratchTastic2022
14.06.2022Dear griffpatch, I love you!
Corndog the hedghog
12.06.2022im gonna use this to make a baldis basics game 🙂
Aspen Onee
12.06.2022thank you, now i know how this works
Matt Kiel Ivhan Animations
12.06.2022What if I'm on phone what I'm gonna do on keys left and right arrow?
Illogical Thinking
12.06.2022The movement, x and y are seperate, so if you hit a specific formation of wall pixels, the result will be one thing, but if you then take the same combination of walls and rotate it 90°, the result could be different!!!
This is super annoying to work with as a player of games with that sort of code. It adds a few new oppertunities to the game, but it's unintutive, and sometimes makes stuff completely impossible!
That type of code is why efficient and compact bee farms in Minecraft bedrock edition has to face a specific direction, and why you can walk through outwards facing corners in Super Mario 64, and I assume why you can climb the curtains and Freddy (or at least related to that part of the code) and walk through certain walls in Five Nights At Freddy's: Security Breach.
There has to be a better solution for this type of stuff!!!
Illogical Thinking
12.06.2022Strafing is, at least everywhere I have heard it, pronounced strayfing, and not strarfing.
TrulyBlue
12.06.2022scratch and 3D just don’t sound right… but now anyone can do it by just watching a video!
maxgamer2 and PastGamerOp
12.06.2022This looks like how to make the backrooms
Theo Teeter
12.06.2022DUDE pairing this with the griffpatch maze generator tutorial is EPIC
KIBA
12.06.2022i thought that part it was changed but nope!
Bace
12.06.2022when i try the rotating movement my character seems to rotate in a circle instead of like ''look around''
Jiyao Wang
11.06.2022omg r u a genius
Aseem Bey
11.06.2022HOW DO YOU MAKE IMBOSIBLE THINGS BE SO EASY THAT A BABY CAN DO IT?!?!!?!?!?!?!
Strider
11.06.2022awsome
Michael Athanson
11.06.2022even at just 6:30 this was feeling awesome
BlueBerry Lol
11.06.2022wow
*proceeds to make backrooms map*
Gediminas Gudaitis
11.06.2022You make part 1-9 very nicely
LOLGAME
11.06.2022I TRYED THIS AND IT TURBO MODE TURNED ON SO DISLIKE
BeenWOW
11.06.2022my level keeps going up when i'm not pressing anything
RobloD3TR3S
11.06.2022TYSMN TYSM TSYSMSMSMMSMSM
bormbu
11.06.2022it dosent work and im stuck on 14:21!
edit: i fixed it