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

  Переглядів 1,599,593

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 - ukposts.info/have/v-deo/nXJ3g6CpoH5-xGw.html Bug Fixes - ukposts.info/have/v-deo/rqGSf4exkYJyxqc.html Channel membership with perks - ukposts.info/the/awsI_mlmPA7Cfld-qZhBQA.htmljoin 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 9 днів тому
@@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 10 місяців тому
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
@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
@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_- Рік тому
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 @)
@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 18 днів тому
@@griffpatch my walls showing up half on my screen pls help
@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!
@aaryanpai5620
@aaryanpai5620 2 місяці тому
hi im a fan of you
@Ornament.G
@Ornament.G 2 дні тому
EGG
@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
@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.
@itscharlie0110
@itscharlie0110 Рік тому
I love your enthusiasm in this series! These videos are super fun to follow along with :D
@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
@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
@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 10 місяців тому
Even 1 million are very little for these awesome tutorials
@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
@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
@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!!!
@starstuff606
@starstuff606 Місяць тому
this is the coolest tutorial ive ever watched on programming. thanks a lot for this video, im having a lot of fun!
@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!
@BJIADUS
@BJIADUS 2 роки тому
Thank you Griffpatch for releasing Part 2! I was just making a 3D game, you helped me learn 3D in Scratch
@planetlumion
@planetlumion 10 місяців тому
This really helped me! I finshed the 3D part! i'll see the other EPS too in 1 day!
@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!😁😁😁😁😁😁😁😁
@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!
@edwardjleavy85
@edwardjleavy85 Рік тому
Watching what Griff can do with scratch blows my mind, great work mate.
@Onetaro
@Onetaro 2 місяці тому
I will use this tutorial video as a reference to make a game. Thank you! I'm rooting for you!
@user-iz6dt1xc5y
@user-iz6dt1xc5y 11 місяців тому
i would never have thought of it on my own. it's so amazing.
@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
@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
@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
@Potato-ze5it
@Potato-ze5it 4 місяці тому
Thank you for this tutorial, it helped me understand a lot about raycasting!
@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
@meltrix4319
@meltrix4319 2 роки тому
I loved watching the 3D environment slowly take shape over the whole episode. Nice vid 😊
@jennifermorrey7378
@jennifermorrey7378 Рік тому
Also, you can set the brightness of the backdrop so the background is as bright as the walls!
@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😁)
@mrebic5750
@mrebic5750 2 роки тому
Amazing Tutorial as always!! Thank you!!! ❤❤❤❤❤
@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 місяців тому
😇
@christiangalloway9507
@christiangalloway9507 7 місяців тому
I was so happy when I saw the 3D picture, thank you so much!!!
@icecrem-2572
@icecrem-2572 Рік тому
Thanks so much, this helped me a lot! You are the best :)
@rhinovr406
@rhinovr406 2 роки тому
he has such a great way of teaching everyone and he also does this too visually
@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
@Terxitos
@Terxitos 3 місяці тому
Not only did this help me with ray casting but also with a projectile to kill enemies!
@lolosharacarrot5507
@lolosharacarrot5507 Рік тому
Я помню что когда-то я смотрел другой гайд по рей-касту, и там всё было настолько сырое, что даже чем дальше стена тем больше она была на проекции, а у тебя гайды просто класс)
@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
@henray6447
@henray6447 2 роки тому
Bought membership for this yesterday. And so happy I did!
@richardchevalier7186
@richardchevalier7186 2 місяці тому
Thanks for helping me put the rays on 2 sides of the player!
@games4us132
@games4us132 3 місяці тому
Your tutorials are really interesting and helpful. Thank you!
@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.
@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
@zekethesqueak618
@zekethesqueak618 4 місяці тому
i was amazed with my results, thanks griff!
@nynkestutorials3182
@nynkestutorials3182 Рік тому
Bro, you are a life saver, I'm going to make the best 3d maze project ever!
@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
@InfremeTheInferior
@InfremeTheInferior 2 роки тому
Awesome video I've been waiting for the second part for so long!
@griffpatch
@griffpatch 2 роки тому
Hope you enjoyed it!
@scratchgames-bq5kc
@scratchgames-bq5kc 6 місяців тому
thanks you for this series, it helped me make my game mazing in
@adityatiwari-ew4dw
@adityatiwari-ew4dw Рік тому
this was awesome!!! thanks man!
@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.
@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!
@ohitsrusher842
@ohitsrusher842 8 місяців тому
For some reason my raycastor goes straight throught my levels walls. I've set it to screen refresh, I've set it to move 1 step, but for some reason it's just not realizing it's contacting with walls.
@OGtonkemonke69
@OGtonkemonke69 9 місяців тому
I love how I listen to your tutorials bc your voice is so energetic yet calming 😂😂😂😂 Great tutorial btw❤
@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.
@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?
@zevac
@zevac 14 днів тому
This might be one of the most impressive things I've ever seen in my life
@remerage
@remerage 4 місяці тому
thanks, my friend is asking me to make a 3d, multiplayer shooting game out of scratch. now that is 1/3 stuff done!
@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
@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
@ihavenoproblems2116
@ihavenoproblems2116 11 місяців тому
2:27 when we do that, if we loop it the raycast script, it can be like a representation of the player hitbox! Siveince the player and the raycaster hitbox costume are the same 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
@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)
@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
@TechnicDesertOF
@TechnicDesertOF 11 місяців тому
i love this series!
@allenli2809
@allenli2809 3 місяці тому
you have good perspective. And I did not know you can make 3d walls with the pen!
@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)
@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!
@cheyenner.7704
@cheyenner.7704 10 місяців тому
Thank you griffpatch!
@Super_CRUSTYthing
@Super_CRUSTYthing 6 місяців тому
This video was really helpful!
@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
@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
@user-hv9by8ec6s
@user-hv9by8ec6s 5 місяців тому
This is sooooooo good thank you for teaching me!!!!!
@nestorraileyavenido662
@nestorraileyavenido662 18 днів тому
Hey Griffpatch thank you so much because finaly i made a 3d renderer. Thx you so much
@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
@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
@sh4pesh1fter46
@sh4pesh1fter46 Рік тому
THANK YOU SO MUCH ITS AMAZING
@electromuffin
@electromuffin Рік тому
YEES I FINALYY FIXED MY ISSUE WITH DRAWING ONLY ONE 3D LINE INSTEAD OF THE WHOLE 3D FOV THING. I HAD TO REWATCH HUNDREDS OF TIMES I CANT DESCRIBE HOW HAPPY I AM
@electromuffin
@electromuffin Рік тому
MY PROBLEM WAS SETTING X TO 240 INSTEAD OF -240 such a small mistake
@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
@glitchyburger-sz6kv
@glitchyburger-sz6kv 6 місяців тому
THANK YOU!!!!!!!!!!!!! be cause of you I did my first 3D game
@fowl216
@fowl216 18 днів тому
We should just appreciate the fact that Griffpatch writes his own captions(I think). :D THANKS!!!
@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!
@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
@queshasingh
@queshasingh 3 дні тому
I loved it!
@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.
@SirKelverson
@SirKelverson Рік тому
21:54 is it possible to turn a single wall red or do something more complicated to the wall? If so, please make a tutorial how
@hearthergd7462
@hearthergd7462 Рік тому
By the end of the tutorial he does something similar by turning a specific portion of the circle a darker color manually. You could create another character where you create a shape over just the wall that you want to change the color of. Then you delete everything else except for that shape. Then you check if "touching" that character, and draw in a different color. Keep in mind im watching this in bed at 5AM, so I didn't have time to test any of this out, and I'm not a good programer, so I might be wrong.
@chutetreillis0147
@chutetreillis0147 Рік тому
Just change the pencil color by another number
@user-kl5gx5bs9h
@user-kl5gx5bs9h 7 місяців тому
Seeing the map with the level reminded me a lot of the DS
@amgadmohamedin8094
@amgadmohamedin8094 4 місяці тому
you are a genius, best scratcher and tutorial maker
@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
@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.
@thatgurlrei
@thatgurlrei 24 дні тому
24:19 i just watched this for fun, but this got me really into this i love math stuff
@Ancient_Yak_Gaming
@Ancient_Yak_Gaming 11 місяців тому
I am a kid 11 years and I know mostly of the viewers are kids and copying everything but this series is ❤ really gud😊❤❤❤
@MaGiCInTeRneTHerO
@MaGiCInTeRneTHerO 6 місяців тому
"gud"lol
@user-fk7gt5yz2p
@user-fk7gt5yz2p 5 місяців тому
Did u seriously just say "gud" u mean good right😂😂
@user-fk7gt5yz2p
@user-fk7gt5yz2p 5 місяців тому
And u just siad "god"
@maxybg
@maxybg 2 місяці тому
​@@user-fk7gt5yz2pthey're called abbreviations
@maxybg
@maxybg 2 місяці тому
​@@user-fk7gt5yz2pyou literally said "did u seriously", that "u" is an abbreviation.
@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
Sprites in a 3D World | E3. Crazy Fun Raycasting
25:53
griffpatch
Переглядів 703 тис.
TOP 10 SCRATCH HACKS !
6:13
SL Smart Mind
Переглядів 408 тис.
顔面水槽がブサイク過ぎるwwwww
00:58
はじめしゃちょー(hajime)
Переглядів 71 млн
skibidi toilet 73 (full episode)
09:41
DaFuq!?Boom!
Переглядів 21 млн
I Made a 1D Scratch Game
8:03
Jackson Academy
Переглядів 94 тис.
How I Made a 3D Platformer in 2D Game Engine
21:23
ggenije
Переглядів 353 тис.
Your Questions Answered 🏆 Scratch 100k Unboxing!
17:05
griffpatch
Переглядів 80 тис.
I Made a Scratch Game In a Scratch Game
9:33
ZonxScratch
Переглядів 308 тис.
Minecraft But On Scratch
7:23
Irrelevant
Переглядів 422 тис.
NEVER DO this on SCRATCH ! | EP 3
10:55
SL Smart Mind
Переглядів 1,1 млн
Top 10 Scratch 3D Games!
9:41
ShiftClickLearn
Переглядів 264 тис.