Crazy Simple Raycasting E2 - 🎮 How to make awesome 3d games in Scratch

  Рет қаралды 1,603,313

griffpatch

griffpatch

Күн бұрын

How to make a simple 3d game (Raycaster) in Scratch. This is part 2 of a short tutorial and we actually create the raycaster. We'll cover projectiles, light rays, Godrays, Wide beam torches with shadows, 3d projection, lens correction, and two colour wall surfaces. I hope you are ready for some serious fun!
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!
👀 Part 3 - • Sprites in a 3D World ...
🔥 Bug Fixes - • Quick Fixes for Raycas...
⭐ Channel membership with perks - / @griffpatch
🐱 Scratch Studio for this tutorial - scratch.mit.edu/studios/30945...
👀 Part 1 - • Crazy Simple Raycastin...
👀 Full Episode Playlist - • Crazy Fun Raycasting (...
👀 Quick and Fun Tutorials - • Quick and Fun Scratch ...
❤️ Scratch Addons - scratchaddons.com/
📹 Video Editing Software - techsmith.pxf.io/c/2682566/50...
-------------Video Chapters-------------
0:00 Intro
0:30 Part 2 - Ray Casting
0:53 Firing a Simple Projectile
3:24 Move by 4 - why?
4:13 Don’t overlap the wall
5:13 Run Without Screen Refresh
6:01 Drawing a Ray with the Pen Extension
7:38 Laser Beam
8:27 Flash Light
9:38 Field of View
12:07 3d projection using raycasting
13:49 Coding our first 3d Raycaster
17:35 Hide the Level Map
18:07 Vertical Line Spacing & Resolution
21:20 Depth Shading the 3d Level
22:51 Fix Fisheye Lensing Effect
25:43 Horizon, Floor and Ceiling
27:41 Improving Jitter
29:30 Shaded Walls
34:16 Outro

Пікірлер: 4 900
@griffpatch
@griffpatch 6 ай бұрын
EPISODE 3 - kzbin.info/www/bejne/m3OpgJ2onq2AmZo Bug Fixes - kzbin.info/www/bejne/rKLEfISwj7F0m9U Channel membership with perks - kzbin.info/door/awsI_mlmPA7Cfld-qZhBQAjoin Scratch Studio for this tutorial - scratch.mit.edu/studios/30945983/comments
@cubekoss7547
@cubekoss7547 5 ай бұрын
Why is this comment 6 days old
@cubekoss7547
@cubekoss7547 5 ай бұрын
Why now
@MineZack2
@MineZack2 5 ай бұрын
@@cubekoss7547Because
@secretshrek
@secretshrek 4 ай бұрын
16:50 why does 1 line show up i dont know why its happening but its error
@OrigamiGadgets
@OrigamiGadgets 4 ай бұрын
Can we play it on iPad and how
@puzzLEGO
@puzzLEGO 2 жыл бұрын
I remember looking at griffpatch’s projects on scratch as a kid and being amazed. Now, when I understand everything happening it’s even more amazing
@NTPrograms
@NTPrograms 2 жыл бұрын
holy crap you're literally everywhere
@RajuMaharjanronin
@RajuMaharjanronin 2 жыл бұрын
@Elliot Farnsworth No I am everywhere I'll be commenting on 1 project one second the next I'm commenting on a different one then I take a 1 second to sip my tea and COMMENT EVEN MOREE just kidding I only watch ever video
@pixelpotato6489
@pixelpotato6489 2 жыл бұрын
I didn't know you watch Griffpatch! I love your puzzles
@obaydulislam2546
@obaydulislam2546 2 жыл бұрын
really its work
@gmdgodnersine-gamingandani7139
@gmdgodnersine-gamingandani7139 2 жыл бұрын
I am a kid lol
@EpicVideos2
@EpicVideos2 2 жыл бұрын
I'm still amazed that a project that uses the touching block can render something complex like this in real time, but it's impressive definitely.
@afifanimation7396
@afifanimation7396 2 жыл бұрын
Actually he using the same context that our eye did.our eyes using the touching light to make a prespective.because of that in the dark we almost cant see.
@Foxxey
@Foxxey 2 жыл бұрын
ikr! I would have just implemented the map programmatically, not as a costume and raycasted using maths..
@Banaannaa
@Banaannaa Жыл бұрын
@@afifanimation7396 that's not how depth is measured your eyes are not in the same place so your brain can see the difference and measure the depth. That's why people with one eye or have something in their brain preventing the calculation can't see depth.
@user-gy4vk4lz4q
@user-gy4vk4lz4q Жыл бұрын
@Beany Boi I have never related more than this comment lol
@XENON2028
@XENON2028 13 күн бұрын
@@afifanimation7396 not really as the rays are coming from light sources and when they bounce they change colours depending on the surface that they touch and then some of those rays end up in your eye
@-_lIl_-
@-_lIl_- 11 ай бұрын
the reason why I watch Griffpatch tutorials and not tutorials by others is because griffpatch's tutorials are: - fun - easy to follow - easy to understand - beginner-friendly - intermediate friendly - advanced-level friendly - can make 35-minute tutorials feel like 10 minutes - it is easy to learn new things from griffpatch's tutorials (I myself learned how to use custom blocks from griffpatch's tutorials) - make tutorials and videos that are actually useful when making a good game - makes us understand the tutorial and what we are doing in the tutorial instead of telling us to just copy this and that - shows how the different pieces of complex code work (like how the cos and sin math functions were used to differentiate x and y when using the move (10) steps block) - griffpatch's tutorials are worth it in the end - griffpatch's tutorials work
@aqeelmalik1349
@aqeelmalik1349 11 ай бұрын
That's so true I myself have really learned a lot from Griff patch's tutorials
@InvertedByDefault
@InvertedByDefault 4 ай бұрын
I am American, E S S A Y N O S I M P L E ! ! !
@-_lIl_-
@-_lIl_- 4 ай бұрын
@@InvertedByDefaultso the meme about smartest child in america solving 2+1 was true
@InvertedByDefault
@InvertedByDefault 4 ай бұрын
WTF IS A KILOMETER?!@@-_lIl_-
@maxybg
@maxybg 2 ай бұрын
Griffpatch teaches things so perfectly, literally anyone can watch it without getting bored or confused, the visual explanations are on point, and the funny thing is, sometimes I'll randomly watch one of his tutorials just for fun due to how entertaining they are
@DDP-Gaming
@DDP-Gaming 2 жыл бұрын
I can already see so many games on scratch when they find this amazing tutorial... Absolutely Awesome!
@DDP-Gaming
@DDP-Gaming 2 жыл бұрын
And You can now get your own Silver play button!
@TTARM
@TTARM 2 жыл бұрын
fps games would start to be on scratch
@arandomperson3117
@arandomperson3117 2 жыл бұрын
I can see rip off's of popular games start to be more advanced now
@lightning_11
@lightning_11 2 жыл бұрын
Griffpatch = Legend
@johnmurcott1273
@johnmurcott1273 2 жыл бұрын
@@arandomperson3117 imma try getting a proper wolfenstein 3D
@duckcatthequrugosk5504
@duckcatthequrugosk5504 2 жыл бұрын
I'm not even using this as a tutorial, I just love how this guy does their magic
@-_lIl_-
@-_lIl_- 2 жыл бұрын
This is true for most videos, as it is entertaining just watching griffpatch use his high knowledge of scratch and show them in tutorials.
@theskrunklers5819
@theskrunklers5819 Жыл бұрын
@@-_lIl_- It's weird how everyone thinks it's complicated (including me!) until griffpatch explains it. I love how it all comes together and even though it's so complicated it makes so much wonderful sense and logic and I love it 🤩
@randomMSMtuber
@randomMSMtuber Жыл бұрын
i thought i was the only one
@g4me_mobile66
@g4me_mobile66 Жыл бұрын
@@randomMSMtuber Your name is literally Mario Fan 0, but your profile icon is a ghost from Pac-man. What the heck?
@randomMSMtuber
@randomMSMtuber Жыл бұрын
@@g4me_mobile66 That was my channel name 3 years ago, but i decided to keep the name handler (the one with the @)
@thesammurairat700
@thesammurairat700 9 ай бұрын
I used raycasting for a platforming game to prevent the player from standing up after crawling if something is right above them. This really helped me out with it
@mortimermouse3086
@mortimermouse3086 9 ай бұрын
Incredible tutorial. Honestly great for a COMPLETE beginner like me. I don't mind starting from scratch (heh) and working my way up. I always wondered how these scratch raycasters worked. I just made it and i'm still so confused lol.
@chipm0nk
@chipm0nk 2 жыл бұрын
As I said on the last episode, this has so much potential!! I think I'll try implementing a grid list system to let myself have more control over colour, and possibly create a level editor. This has genuinely been the best tutorial series I've ever watched, and I can't wait to see what the community creates with it. Keep Scratching, y'all!
@AngelaGS
@AngelaGS 9 ай бұрын
hi chipm0nk!
@Ornament.G
@Ornament.G 6 күн бұрын
EGG
@laky2k866
@laky2k866 2 жыл бұрын
I have been waiting for this part for a while now, and I am definitely not disappointed! This tutorial is leagues better than the Scratch Wiki one in my opinion :)
@griffpatch
@griffpatch 2 жыл бұрын
Glad you enjoyed it!
@omargaming5688
@omargaming5688 2 жыл бұрын
I enjoyed the 1st part i hope it's 3d in the second i said that since i haven't seen this episode
@brothergodzilla
@brothergodzilla 2 жыл бұрын
@@griffpatch I didn't 🙃
@RajuMaharjanronin
@RajuMaharjanronin 2 жыл бұрын
@@brothergodzilla dislike
@megaturtle9547
@megaturtle9547 2 жыл бұрын
@@brothergodzilla i would like you to direct me to who asked plz
@Yourbro153
@Yourbro153 Жыл бұрын
So cool! I love how you not only show us how to make it but you also show how it WORKS!! You are so cool and now I understand actually how this works!
@griffpatch
@griffpatch Жыл бұрын
Yay thanks. Yes that's what I like to do :) show how it works!
@Yourbro153
@Yourbro153 Жыл бұрын
@@griffpatch 😎😎😎
@korneliusfrik9545
@korneliusfrik9545 2 ай бұрын
@@griffpatch uhm- can you show me why my cpu now allways when i run the project i get an error that a web partition is not executable? i mean it wont work....
@profire407
@profire407 22 күн бұрын
@@griffpatch my walls showing up half on my screen pls help
@zzcole.
@zzcole. Жыл бұрын
Wow! Your editing quality has improved a LOT! I've been watching since I found your video about a scrolling platformer! 1 million subscribers are what you deserve.
@aqeelmalik1349
@aqeelmalik1349 11 ай бұрын
Even 1 million are very little for these awesome tutorials
@VSpook
@VSpook 2 жыл бұрын
I'm impressed how scratch can make these things, i thought it was more limited, but your tutorials proved me wrong, keep it going!
@ChuckSploder
@ChuckSploder 2 жыл бұрын
what most engines have built-in, on scratch you have to code them yourself. that's part of the charm of it
@funut2541
@funut2541 2 жыл бұрын
Awesome video, imagine instead of using level sprite you used your grid based list! Add maze generation on top of that! Man, lots of great ideas here...
@funut2541
@funut2541 2 жыл бұрын
Surely the next step will be drawing sprites though? Would love to see it with your depth sorting project
@griffpatch
@griffpatch 2 жыл бұрын
Ikr, I guess I should consider that :)
@iatemyhand11
@iatemyhand11 2 жыл бұрын
Funut why did you delete your videos?
@Crafter_100
@Crafter_100 2 жыл бұрын
@@funut2541 OMG FUNUT why did you DELETE your CHANNEL!
@CyanIsKewl
@CyanIsKewl 2 жыл бұрын
@@Crafter_100 i dont think he’d wanna delete his videos for no reason. I think something bad happened to make him lose his videos
@starstuff606
@starstuff606 Ай бұрын
this is the coolest tutorial ive ever watched on programming. thanks a lot for this video, im having a lot of fun!
@user-xo3ow2kc3g
@user-xo3ow2kc3g Жыл бұрын
your tutorials help more than the scratch tutorial videos! i'm making a 3d game and also a top down view game, and i couldn't get it to work until now! Thanks Griffpatch!😁😁😁😁😁😁😁😁
@ItsADG69420
@ItsADG69420 Жыл бұрын
I started to take Scratch lessons like 1 month ago, and these tutorials will help in the Scratch classes. I love your tutorials!
@ChillKillaBeta
@ChillKillaBeta Жыл бұрын
wait, scratch lessons exist? where can i sign up
@ralphralph1346
@ralphralph1346 Жыл бұрын
@@ChillKillaBeta I think they mean in school
@ChillKillaBeta
@ChillKillaBeta Жыл бұрын
@@ralphralph1346 oh, what schools do this then
@AngusMoore-dv7uj
@AngusMoore-dv7uj 3 ай бұрын
look it up @@ChillKillaBeta
@Davi-zo4lu
@Davi-zo4lu 2 жыл бұрын
12:06 this raycasting is great, it could be great to use for enemy visions, to make stealth games
@WilliamNyberg
@WilliamNyberg 2 жыл бұрын
I actually did that without even realizing it was an "official" method (albeit a bit simpler)
@AnduTheShadow
@AnduTheShadow 2 жыл бұрын
Yes, I thought of a Hide n' Seek game. But 3D is more likely "not a mistake", ✨ IT'S A MASTERPIECE! ✨
@legendgames128
@legendgames128 2 жыл бұрын
Perfect for horror games also, just set the divisor for distance to 1.
@LitoMike
@LitoMike 2 жыл бұрын
@@AnduTheShadow i thought of making the same thing but with bushes and 2d
@WinterNox
@WinterNox 2 жыл бұрын
@@AnduTheShadow Imagine using star emojis unironically
@Unknown-jm9ix
@Unknown-jm9ix 7 ай бұрын
the ray casting makes me think of a top-down view games where you are sneaking into a place and an ai guard has a flash light and if you touch in the light you get caught! also ty for making these tutorials! they are really helpful :D
@slysniperjett
@slysniperjett 3 ай бұрын
Dude I just watched this video and saw about 10 new things that I did not know you could do. Keep up the good work griffpatch!!!
@BJIADUS
@BJIADUS 2 жыл бұрын
Thank you Griffpatch for releasing Part 2! I was just making a 3D game, you helped me learn 3D in Scratch
@karllospinto
@karllospinto 2 жыл бұрын
Tip for decreasing corner flickering: Make player forward and backward velocity a multiple of the ray velocity.
@gabrielfuhr5964
@gabrielfuhr5964 2 жыл бұрын
the angle of the ray would make that mot work
@karllospinto
@karllospinto 2 жыл бұрын
@@gabrielfuhr5964 How so?
@farriswheel3984
@farriswheel3984 2 жыл бұрын
Corner flicking is problem, but I don’t understand what you said. Can you simplify please?
@karllospinto
@karllospinto 2 жыл бұрын
@@farriswheel3984 Imagine your Player is standing at the coordinates (x: 0, y: 0) and facing right. If the Raycaster moves 4 steps in each iteration than it will verify if there is a wall at the positions (4, 0), (8, 0), (12, 0) and so on (ignore the dimensions of the Raycaster sprite, Scratch's sprite collision detection is not perfect and it's not worth taking it into consideration here). If we move the Player to the right 2 steps it will be at (x: 2, y: 0) and the Raycaster will now verify if there is a a wall at the positions (6, 0), (10, 0), (14, 0) and so on. This are different positions and it's a big part of what makes the corner flickering. If instead of moving 2 steps the Player had moved 4 steps, the Raycaster would have verified if there was a wall at the postitions (8, 0), (12, 0), (16, 0) and so on. The same positions it verified before moving. Let's say there was a corner at (12, 0). It would have been detected when the Player was at (0, 0) but once the player moved, if it had moved 4 steps, the corner would still be detected, but not if the Player moved 2 steps. You can verify that this will be true for any multiple of the Raycaster velocity.
@farriswheel3984
@farriswheel3984 2 жыл бұрын
@@karllospinto Thanks a lot, this helped the flickering!
@planetlumion
@planetlumion 10 ай бұрын
This really helped me! I finshed the 3D part! i'll see the other EPS too in 1 day!
@user-iz6dt1xc5y
@user-iz6dt1xc5y 11 ай бұрын
i would never have thought of it on my own. it's so amazing.
@henray6447
@henray6447 2 жыл бұрын
Bought membership for this yesterday. And so happy I did!
@williamdekoninck5228
@williamdekoninck5228 2 жыл бұрын
This was a really fun video. I can't wait to try it myself! I think if this series were to continue (which I really hope it does), I think adding room warps and moving objects would be really cool.
@ricardosantos2599
@ricardosantos2599 4 ай бұрын
12:07 1024A+256A+128A=2048A!
@icecrem-2572
@icecrem-2572 Жыл бұрын
Thanks so much, this helped me a lot! You are the best :)
@OGtonkemonke69
@OGtonkemonke69 9 ай бұрын
I love how I listen to your tutorials bc your voice is so energetic yet calming 😂😂😂😂 Great tutorial btw❤
@mrebic5750
@mrebic5750 2 жыл бұрын
Amazing Tutorial as always!! Thank you!!! ❤❤❤❤❤
@RepressedButton
@RepressedButton 2 жыл бұрын
This is a note for people who are having this problem: I had the issue where my wall colors would show up a little bit on the wrong walls (some walls were 2 colors) to fix this just save the project and refresh Scratch and it should work fine :D
@numberblock_36_the_exp_lov62
@numberblock_36_the_exp_lov62 Жыл бұрын
Thanks ❤️❤️❤️
@fanarts711
@fanarts711 Жыл бұрын
OMG THANK YOU-
@NandigamS
@NandigamS Жыл бұрын
thank you
@b3rnardGamingForever
@b3rnardGamingForever Жыл бұрын
Thank you, didn't even think about it!
@RepressedButton
@RepressedButton Жыл бұрын
@@b3rnardGamingForever you’re welcome
@Potato-ze5it
@Potato-ze5it 4 ай бұрын
Thank you for this tutorial, it helped me understand a lot about raycasting!
@Onetaro
@Onetaro 2 ай бұрын
I will use this tutorial video as a reference to make a game. Thank you! I'm rooting for you!
@kirbowaffle
@kirbowaffle 2 жыл бұрын
Here's an extra tip to make a nice looking raycaster. Under the "Single Ray" block, you can go down to the "set pen brightness block" and place a "change pen color by" block under it. place ( distance / 20 ) inside, and it will make it so the farther away the wall is the deeper of a color it will be
@Eldoofus
@Eldoofus 2 жыл бұрын
Okay, I can get behind this idea
@jacobidoherty2211
@jacobidoherty2211 2 жыл бұрын
this is much better
@crapguy-gd
@crapguy-gd 2 жыл бұрын
ok
@cheating6319
@cheating6319 2 жыл бұрын
Its rainbow-ish
@dagangsta3284
@dagangsta3284 2 жыл бұрын
@@cheating6319 just a little
@edwardjleavy85
@edwardjleavy85 Жыл бұрын
Watching what Griff can do with scratch blows my mind, great work mate.
@games4us132
@games4us132 3 ай бұрын
Your tutorials are really interesting and helpful. Thank you!
@zekethesqueak618
@zekethesqueak618 5 ай бұрын
i was amazed with my results, thanks griff!
@Wondercool923
@Wondercool923 2 жыл бұрын
Hey man, I can't express how thankful I truly am. You are an amazing person making all these tutorials for people, so we can all learn how to make wonderful games! I have told you I think in the first video that I am going to make a game. Well because of you that game that I have always wanted to make is now a reality :D You deserve many more subscribers!
@merlmason5786
@merlmason5786 9 ай бұрын
😇
@itscharlie0110
@itscharlie0110 Жыл бұрын
I love your enthusiasm in this series! These videos are super fun to follow along with :D
@e1511
@e1511 11 ай бұрын
dude, thank you so much. Ive always wanted to make a game like this and i did, thanks to your amazing tutorial. (and i also got a perfect score in my digital tech class thanks😁)
@christiangalloway9507
@christiangalloway9507 7 ай бұрын
I was so happy when I saw the 3D picture, thank you so much!!!
@theemraldpumpkin45
@theemraldpumpkin45 2 жыл бұрын
i remember griffpatch from years ago, and being amazed. its wonderful to see this legend is still going
@PersonianOld
@PersonianOld 2 жыл бұрын
I literally discovered his channel after finding Episode 1 of this two-part series lol
@petey5009
@petey5009 2 жыл бұрын
As someone who no longer works in Scratch, this is still some pretty useful knowledge that could translate into really any language / framework
@scratchgames-bq5kc
@scratchgames-bq5kc 6 ай бұрын
thanks you for this series, it helped me make my game mazing in
@richardchevalier7186
@richardchevalier7186 3 ай бұрын
Thanks for helping me put the rays on 2 sides of the player!
@rhinovr406
@rhinovr406 2 жыл бұрын
he has such a great way of teaching everyone and he also does this too visually
@meltrix4319
@meltrix4319 2 жыл бұрын
I loved watching the 3D environment slowly take shape over the whole episode. Nice vid 😊
@nynkestutorials3182
@nynkestutorials3182 Жыл бұрын
Bro, you are a life saver, I'm going to make the best 3d maze project ever!
@lolosharacarrot5507
@lolosharacarrot5507 Жыл бұрын
Я помню что когда-то я смотрел другой гайд по рей-касту, и там всё было настолько сырое, что даже чем дальше стена тем больше она была на проекции, а у тебя гайды просто класс)
@dmkin4420
@dmkin4420 2 жыл бұрын
It's time to redesign my maze 😀 But I don't understand why when '' move 4'' in normal, it's slow, and when it's in "my blocks" So he hits the wall instantly. 5:29 I don't know if you explained it, I don't understand English.
@griffpatch
@griffpatch 2 жыл бұрын
So, although it looks like the projectile hits the wall instantly... in reality, it does take time... just so little that you don't see it happen. Now when we start doing this a thousand times a second to build a 3d scene, that begins to add up and you will find your game begins to drop in framerate... lag more and more. So, the faster we can do our ray casting the better!
@owo8643
@owo8643 2 жыл бұрын
I think it is because the box of RUN WITHOUT SCREEN REFRESH is ✅. In normal, the box move 4 steps, show it to you, move 4 steps... but in my blocks, if you tick the run without screen refresh, the box will finish all the tasks in the define section before it show the result i.e. move 4 steps, move 4 steps, move 4 steps... show it to you. Hope this can help you, but as I am also new, there might be mistakes in understanding the code. 😅
@drevoksi
@drevoksi 2 жыл бұрын
Let me try to explain. The game in Scratch runs at, around, 30 frames per second (fps). In the first case, it will move 4 steps and then wait for the next frame to start. In the second case however, all the blocks in the custom block are forced to run in the one frame, your project will wait for everything in this block to process, and only after that it will render the frame (show you the result). Therefore you won't see how it's all happening in the second case.
@prililacreatore130
@prililacreatore130 2 жыл бұрын
What language?
@itzjustrandom5673
@itzjustrandom5673 2 жыл бұрын
Si hablas español es porque cuando marcas el mover sin refresco de pantalla, el codigo de moverse no se realiza con animacion para mostrarte el movimiento, sino que se ejecuta al instante y no se muestra en pantalla el movimiento
@InfremeTheInferior
@InfremeTheInferior 2 жыл бұрын
Awesome video I've been waiting for the second part for so long!
@griffpatch
@griffpatch 2 жыл бұрын
Hope you enjoyed it!
@user-nt9jj3kz1t
@user-nt9jj3kz1t 8 ай бұрын
Your channel is very cool and your explanation is simple
@adityatiwari-ew4dw
@adityatiwari-ew4dw Жыл бұрын
this was awesome!!! thanks man!
@malwaremation-informaticaa9749
@malwaremation-informaticaa9749 2 жыл бұрын
9:47 There's a hidden Appel in the transition. And amazing tutorial!
@ksubswithvideos-gs4qq
@ksubswithvideos-gs4qq 2 жыл бұрын
yes
@lexdoes
@lexdoes 2 жыл бұрын
I thought I hallucinated that for a second, lol
@Superfastisfast
@Superfastisfast 2 жыл бұрын
@@lexdoes bruh
@Jon-oc8hb
@Jon-oc8hb 2 жыл бұрын
13:30 I saw the Platformer Character/Guy I think, was this a challenge? It seemed a bit obvious like I was able to see it for a few seconds. Also, the tutorial is so good, prob better than my teacher, (I hope she doesn't find this comment). Keep up the good work!
@neymarvasquez9805
@neymarvasquez9805 7 ай бұрын
you are the best scratcher of the world. thank you
@hyla5142
@hyla5142 7 ай бұрын
I really like this tutorial its cool and easy to follow
@doomguy_1017
@doomguy_1017 2 жыл бұрын
When I try to make a single ray block, it doesn’t pop up as my block. Could you help me with that?
@griffpatch
@griffpatch 2 жыл бұрын
Just click into another sprite and back and it will appear in your palette as if nothing was wrong!
@QuantumScratcher
@QuantumScratcher 2 жыл бұрын
I seem to have the same problem when attempting to make a custom block tutorial. :|
@sophiamaldia3619
@sophiamaldia3619 2 жыл бұрын
I have a problem that it show at the side or at the back
@Ep1cBramb10
@Ep1cBramb10 2 жыл бұрын
there's a glitch in scratch where the my blocks just disappear when you try to make them. simply restart the browser or scratch
@RandomGeometryDashGuy
@RandomGeometryDashGuy 2 жыл бұрын
Oh it isn't just me this happened yesterday (my time zone)
@TuxikCE
@TuxikCE 2 жыл бұрын
Great! What I like about this is that for the game engine, it is still fairly less work and more efficient than other 3d games I have played. Those games get like under 5 fps and are not playable.
@user-hv9by8ec6s
@user-hv9by8ec6s 5 ай бұрын
This is sooooooo good thank you for teaching me!!!!!
@Terxitos
@Terxitos 3 ай бұрын
Not only did this help me with ray casting but also with a projectile to kill enemies!
@user-nt4nu9pd8v
@user-nt4nu9pd8v 2 жыл бұрын
Yes!!! I was waiting for part 2 for many hours!!
@griffpatch
@griffpatch 2 жыл бұрын
Sorry it took so long - It's been quite hard to squeeze it all in :D
@user-nt4nu9pd8v
@user-nt4nu9pd8v 2 жыл бұрын
@@griffpatch Can you make a studio to upload my project when finished?
@griffpatch
@griffpatch 2 жыл бұрын
Yes I will!!! I don't usually make them until the video goes public to avoid people just taking peoples projects and remixing without watching the video and learning about it. As soon as it goes public the link will be shared too :D
@TheEgglet
@TheEgglet 2 жыл бұрын
for the coloring walls part maybe you could just move the ray right when it collides, check if it's still touching the wall, if yes then move it left, if at any point it's not touching the wall then color it blue
@Super_CRUSTYthing
@Super_CRUSTYthing 7 ай бұрын
This video was really helpful!
@cheyenner.7704
@cheyenner.7704 10 ай бұрын
Thank you griffpatch!
@revolutionstudios5052
@revolutionstudios5052 2 жыл бұрын
I remember making one of these years back in Elementary School for the hell of it. It ran at 3 FPS, but it was my pride and joy. Never could get enemies working, though, which was a shame.
@griffpatch
@griffpatch 2 жыл бұрын
Sounds great :) such fun right
@revolutionstudios5052
@revolutionstudios5052 2 жыл бұрын
@@griffpatch It was - but being the overambitious oaf-child I was, though, I set the bar too high and ended up crashing and burning and losing all motivation for a good long time. I might actually try and resuscitate that project, because looking back at some of the ideas I dumped into a Google Doc, not all of them were terrible concoctions.
@VSink7631
@VSink7631 2 жыл бұрын
Finally, I'm so excited to start coding at 1:20am! Maybe my time zone isn't so good
@griffpatch
@griffpatch 2 жыл бұрын
Oh no sadness... That's too late!!! If only we could share a single timezone LOL
@alihesham8167
@alihesham8167 2 жыл бұрын
@@griffpatch me in gmt+2 separated from USA: meh, typical
@sapnaodesk
@sapnaodesk 2 жыл бұрын
@@griffpatch like your coding but 16:49 its a giving a result as so many lines but not even an angle working
@QuantumScratcher
@QuantumScratcher 2 жыл бұрын
I'm in GMT so I know when he will upload without conversion.
@joemck85
@joemck85 2 жыл бұрын
Sounds like the start of an all-nighter.
@sh4pesh1fter46
@sh4pesh1fter46 Жыл бұрын
THANK YOU SO MUCH ITS AMAZING
@Slaymisi
@Slaymisi 11 ай бұрын
When you are at the flashlight stage I would reccomend making an aditional level costume that is the same but black or whatever color you used for your background to get a cool effect
@Emma-eq1ey
@Emma-eq1ey 2 жыл бұрын
Come on, I've been creating variables to get the direction, position, volume..., of another sprite all the time because I was too stupid to find that block😡😂 You have amazing tutorials griffpatch, thank you :D
@FeniteFr
@FeniteFr 2 жыл бұрын
Wohoo now I recive notifications for the early acces videos But I think I don't need them because I go on your channel 4 times a day The video looks awesome 🤩🔥
@griffpatch
@griffpatch 2 жыл бұрын
Woo-hoo :D So pleased to have you in the membership! Enjoy!
@amgadmohamedin8094
@amgadmohamedin8094 4 ай бұрын
you are a genius, best scratcher and tutorial maker
@remerage
@remerage 5 ай бұрын
thanks, my friend is asking me to make a 3d, multiplayer shooting game out of scratch. now that is 1/3 stuff done!
@Harry_Pottery
@Harry_Pottery 2 жыл бұрын
Hi Griffpatch! This is amazing! I'm just wondering how you would be able to create tunnels (that don't touch the floor and/or reach the ceiling) since the 3D world is being created from a 2D sprite and is a top-down view of the map?
@pelmeshkatopgg4846
@pelmeshkatopgg4846 2 жыл бұрын
Griffpatch, how do you like the idea of ​​combining 3d with a maze generator?
@bringerofmolochswrath5477
@bringerofmolochswrath5477 2 жыл бұрын
that would be sicccckkkkkk
@jacobidoherty2211
@jacobidoherty2211 2 жыл бұрын
very cool
@rubenark6834
@rubenark6834 2 жыл бұрын
Look up his tutorial for that and instead of making the path colored, make two small rectangles that are colored, i think that'd work
@STUPIDBINGU
@STUPIDBINGU 2 жыл бұрын
You can't do it because it uses pen
@ksubswithvideos-gs4qq
@ksubswithvideos-gs4qq 2 жыл бұрын
@Keremino me too i forgot touching colours existence and now i lost my maze generation thing
@chennychen5826
@chennychen5826 9 ай бұрын
in depth shading, if you divide distance by 0.1, you feels like you are lost in a dark room, turning the walls red will make it even scarier
@TechnicDesertOF
@TechnicDesertOF 11 ай бұрын
i love this series!
@furnacedev
@furnacedev Жыл бұрын
If i was you, I would be estatic to be the one to discover this hidden secret of scratch. Raycasting! Your skill is a natural gift, and you are using it to your best ability by teaching everybody else your knowledge. Keep on scratching! -Skippy
@guineapigabomination3293
@guineapigabomination3293 Жыл бұрын
should of said"eggstatic"
@furnacedev
@furnacedev Жыл бұрын
@@guineapigabomination3293 yeah should have (love the name btw)
@snufkin8940
@snufkin8940 2 жыл бұрын
Are there any raycasters that scan horizontally? I wonder if there was a way to hide the pen lines as a sort of CRT scanlines effect
@main_thing
@main_thing 2 жыл бұрын
maybe an easy way is to just ovelay a sprite that looks like the effect over the raycaster.
@alexdacat7052
@alexdacat7052 2 жыл бұрын
Why don’t you just make a few costumes on a sprite
@nj7808
@nj7808 2 жыл бұрын
Well i did a little fiddling and found that if you put res at 31 it should give small efect like that without doing anything to the code
@nestorraileyavenido662
@nestorraileyavenido662 22 күн бұрын
Hey Griffpatch thank you so much because finaly i made a 3d renderer. Thx you so much
@allenli2809
@allenli2809 3 ай бұрын
you have good perspective. And I did not know you can make 3d walls with the pen!
@retrorespecter3780
@retrorespecter3780 2 жыл бұрын
Great tutorial! Learned a lot. But it would be cool for a tutorial for making platforms, slopes and putting 2D sprites in this 3D world. (For making enemy's)
@fireywaves7222
@fireywaves7222 2 жыл бұрын
Exactly we need this!!!
@denbotgaming
@denbotgaming 2 жыл бұрын
I would definitely need the 2d sprites! I want to make a shooter game.
@impfromdoom9137
@impfromdoom9137 2 жыл бұрын
@@denbotgaming same bro
@FireyDeath4
@FireyDeath4 2 жыл бұрын
This is why you use circles instead of squares for hitbox checks. Circles are unbiased. If you want to paint the level, you could just modify the normal level and check if it's touching a particular colour on it. Also we should get light sources in future videos ={^o_o^}= if you're reading this be verified ✓
@uwnoodle
@uwnoodle 2 жыл бұрын
pixels are square shaped. if you wanted to make a circular hitbox it would have to be considerably larger and less accurate
@FireyDeath4
@FireyDeath4 2 жыл бұрын
@@uwnoodle Better then, use a square and switch it to a pixel once it reaches the wall. No, wait, we were talking about corner skipping...uh yeah just do something about that to prevent it. Have something that checks for walls in a straight line.
@nj7808
@nj7808 2 жыл бұрын
@@FireyDeath4 yea like a square
@FireyDeath4
@FireyDeath4 2 жыл бұрын
@@nj7808 Mmm...you know what, actually, no. More like a line with all-around rotation. That would be good.
@myroslavabilobrova9272
@myroslavabilobrova9272 9 ай бұрын
Wow! I like it!
@demonicai-kz4vf
@demonicai-kz4vf Жыл бұрын
I love this tutorial because its makes the game a lot better and you barely do any coding its ver short
@Opti234
@Opti234 2 жыл бұрын
13:50 Is it just me, or whenever griffpatch says “here goes nothing” I get super excited?
@average_melon6042
@average_melon6042 2 жыл бұрын
x is so fun
@splinterthepurple
@splinterthepurple 2 жыл бұрын
Spectacular Tutorial, Griffpatch! It’d be cool if you can include a tutorial on how you made 3D laser tag’s platforms and slopes. Awesome series so far though!
@renukakumarababu1063
@renukakumarababu1063 2 жыл бұрын
I want weapons tho that is all i need to make my game idea true need guns
@glitchyburger-sz6kv
@glitchyburger-sz6kv 6 ай бұрын
THANK YOU!!!!!!!!!!!!! be cause of you I did my first 3D game
@Mythicsparks
@Mythicsparks 9 ай бұрын
this worked and know im a scratch lv3 user thanks
@TheMaxGuy
@TheMaxGuy 2 жыл бұрын
tip: if the colors don't always switch, just put [set pen color to (53)] in the else part of the if/else statement on the single ray custom block.
@rajtech23
@rajtech23 8 ай бұрын
its hard but its easy at the same time. Thank you !
@griffpatch
@griffpatch 8 ай бұрын
You're welcome 😊
@zevac
@zevac 18 күн бұрын
This might be one of the most impressive things I've ever seen in my life
@loganboi2166
@loganboi2166 2 жыл бұрын
some problems i have: 1: when my thing collides with the wall the rays go crazy 2: the RES thing is not far enough and squishes if i go high, so does FOV
@vanimapermai
@vanimapermai 2 жыл бұрын
So how far can this be taken? could we recreate the original doom? or would stuff like elevated areas and texture projection be to complicated for scratch?
@OrangeDied
@OrangeDied 2 жыл бұрын
Finlay_Cool has made a doom engine of sorts, and also a functional Wolfenstien clone
@theheadpriest
@theheadpriest 2 жыл бұрын
Considering even this simple raycasting can run a little slow i dont think full-fledged sector based rendering like doom can run very well
@RegularBiscuit
@RegularBiscuit Күн бұрын
thank you griffpatch, still helping people learn code
@joeydafishy1713
@joeydafishy1713 7 ай бұрын
This is soooooooooo coooollllll best tutorial ever period.
@user-ck9fr8hi3j
@user-ck9fr8hi3j 2 жыл бұрын
In the next episode, we will probably add jumping, collectables, enemies.
@amiasmiljour1190
@amiasmiljour1190 2 жыл бұрын
Remember how he said in episode 1 that this series might only be two episodes?
@ninjireal
@ninjireal 2 жыл бұрын
@@amiasmiljour1190 if this was meant in a condescending way, your comment has aged horribly
@ChillKillaBeta
@ChillKillaBeta Жыл бұрын
@@ninjireal lol yeah
@AidenSmith-gc6fo
@AidenSmith-gc6fo Ай бұрын
@@ChillKillaBetaespecially now that we can jump
@vidushisrivastava8975
@vidushisrivastava8975 2 жыл бұрын
Waiting for the next episode where he might show jumping, crouching, using up-down arrow keys to look up and down and more than 2 coloured walls along with lifts which he had in his 3d maze, also 3dentities.
@MariaMartins-pj8mj
@MariaMartins-pj8mj 2 жыл бұрын
sadly it only showed the new enities
@richardbeaton8653
@richardbeaton8653 6 ай бұрын
Fortunatley 1 or 2 episodes later they did Jumping@@MariaMartins-pj8mj
@RegularBiscuit
@RegularBiscuit Күн бұрын
gotta do trig for GCSE and this is helping. Thanks griffpatch :)
@succesful.workers
@succesful.workers Жыл бұрын
thanks for the very good tutorial
@littlenoobcafe
@littlenoobcafe 2 жыл бұрын
I'm trying to do this on python and I'm wondering how to make the raycast "instant" or how to run without screen refresh, please help!
Sprites in a 3D World | E3. Crazy Fun Raycasting
25:53
griffpatch
Рет қаралды 705 М.
Surprise Gifts #couplegoals
00:21
Jay & Sharon
Рет қаралды 31 МЛН
Зомби Апокалипсис  часть 1 🤯#shorts
00:29
INNA SERG
Рет қаралды 6 МЛН
"Save My Game!" 💾 Data Serialization & Escaping in Scratch
16:29
Making a Scratch Game with 0 SPRITES
11:37
SL Smart Mind
Рет қаралды 47 М.
How I Made a 3D Platformer in 2D Game Engine
21:23
ggenije
Рет қаралды 364 М.
Griffpatch vs Scratch JR: Flappy Bird Challenge!
19:42
griffpatch
Рет қаралды 1,4 МЛН
I Made a Scratch Game In a Scratch Game
9:33
ZonxScratch
Рет қаралды 314 М.
Top 10 Scratch Games (October 2022)
18:57
ShiftClickLearn
Рет қаралды 2,4 МЛН
Making an ELEMENTAL BENDING Game in Scratch!
8:46
ProjectLabs
Рет қаралды 81 М.
I remade the WORST scratch game...
8:18
Viiperrr
Рет қаралды 222 М.