Now I finally understand why Minecraft completely breaks when you swap the sin and cos functions. I used to think they weren't very important, but it turns out they're used a ton for rendering 3D games! I had no idea!
i'm makin one of these in python, and this was the best tutorial I could find! , even though it isn't in python, the way he makes complex concepts so easy to grasp is brilliant!
I love how griffpatch shares his knowledge to other Scratchers that needed help on their projects. I often learned how to use blocks that I haven't used before.
you just gotta love griffpatch's videos, he's just always so cheerful and fun to watch! just how he interacts with Nano is fun and playful, and it just creates such a welcoming and happy atmosphere for the video. absolutely just a joy to watch and follow along
It would be really cool to see how to make the walls have patterns, add looking up and down, add objects and make the map bigger using some sort of scrolling mechanism. Maybe even add random or infinite map generation.
I bet you could do it with lists. You could probably turn a list into a cube list instead of a grid list, and store the colors as the values for the list. When the raycaster senses a wall, it can detect what color you want by what value is in the list
This is hands down, my favorite series in all of TH-cam. (I really love programming.) so ofc, griffpatch’s series are the best, and his 3D series is definately the best series out of all of the ones he had made. All of this 3D stuff is super cool, and makes me super excited. I love it!!! I hope griffpatch doesn’t hold back on fear that it might get to difficult. I really love learning about all of this, and am really confident in my ability to follow along. I want to put all of this 3D stuff to it’s fullest potential.
When I turn away from my entity, it just gets bigger and bigger until it loops back around, becomes really small, and then grows again until i'm looking back at it.
Hello, I love what you do and I'm a scrapper too! And thanks to you, I'm getting better and better! Thank you for these tutorials that allow passionate scratcher like me to do things (like you) incredible!
Wow I love it, its so easy to copy these tutorials and slowly, I'm becoming smarter in coding! I'm sure all your fans are having the same thing griffpatch! We all would like to thank you for this!
I understand the whole thing and even came up with the rotation beforehand with complex numbers but I would have never come up with this myself. Amazing work griffpatch! However I think an SDF raymarching that allows for a z position would be great to have. Here are some useful formulas if you need them: Union of A and B: min(a, b) Intersection of A and B: max(a, b) B subtracted from A: max(a, -b) Where a and b are the SDFs of A and B respectively.
Method of creating a floor: after drawing a ray, you need to set the brightness to 100% and set the color of which will be the floor and after that you need to move the drawing lines to the edge of the map.
@@jofsalter He means scaling down the collisions of the map and sticking it in the top right as another sprite, but I don't know about the player and other stuff
I used your random maze script with this project as well. i had to change the stamping of corridors into clones to get it working in game, however the moment i start raycasting clones, the game gets really laggy compared to when it was only raycasting off a single large sprite. anyone find a way to generate random mazes without lagging the raycaster?
Hey griffpatch, love your tutorials. They are very clear and in depth. I have a request, can you make a video on a topic we all are afraid of? Lists! Seeing your other tutorials I am sure that you'll explain this topic very well. Thanks
only issue(s) 1. Alot of M A T H 2. How to make the pen correctly draw the texture but its a great idea since textured floors and walls makes the game look better
I love his humorous and fun way to teach. The other tutors are usually like, put this and that and here and there and you have it, your game. We don’t learn anything.
I made some slight changes with the FOV change, In "Define (Single Ray)" script, scroll down until you see the "set pen brightness" block. "Set pen brightness to (120 - (distance / (DV / 300)))" When you do that, when you slide up the fov, the brightness will change even darker, like the player moving.
I'd love to see how I can make the player look up or down, and how to move the camera with the mouse, like in games like COD or Minecraft, it would be VERY useful :D
@@Aiaimonkey8093 thats actually simpler than you think, you can just make it when the player touches a sprite on the map, teleport them to this x and this y. and you can also add raycasting to that as well
That's Awesome! Could You add the Following Episodes in a Platformer Tutorial? - 12: Moving Saws and Trampolines! - 13: Add Death animations - 14: Smooth Platform Movements - 15/Final Episode: Bosses and Goal!
@@griffpatch im encountering a bug where when i look around my entity just zips and zaps around the random spots on the map?? but when i check my code its the exact same as yours
something i really like about this is how when i set the FOV to a multiple of 180 everything just flips again, and again, and again yet nothing else changes. (like how it works in other games)
I love all his videos and how he brings about a cheerful environment. it would be really cool if he could make a mini 2d map and then turn it into a multiplayer game
ty griffpatch for being so cool and teaching all of us so many new stuff.i dont not know how to code in scratch until i saw your videoes.i got A+ last last month with my computer skills exam on scratch.
@@griffpatch When i do the thing on 8:50, it just breaks the raycasting and it just became one-dimensional raycaster. How am i gonna do that if it just goes 1D instead of being working as a 3D?
I love Griffpatch's enthusiasm, It just makes coding a lot more fun, and it makes learning so entertaining! It really makes me want to continue game development! Thanks, griffpatch!
Fun fact: if you want to make multiple wall colours or objects, duplicate the level sprite and Change the sprite sprite shape by redrawing it (optional) and then change the pen colour, the object will then be a different colour to the walls
Bro, Griffphatch is so helpful I have been doing this raycasting for while now Geometry dash and Lemon invation failed, but not me Im happy with Griffpatch's teaching
My heart is still shaking of horror because I’m making a horror game with this and I wanted to see my like freaking SCP HERE and it popped into my face and I don’t know I I passed out or not
Dude, I’ve followed EXACTLY what he does and now my thing is broken and I can’t go on. I checked all the videos for mistakes, and I haven’t made any. Literally just after the first Tidy Up section something broke my movement. The play goes in random directions and camera does not move. I have two copies of before and after, and before works like a charm, but the after is super broken. How am I supposed to get this working?? I’ve been stuck on it for 30 minutes.
the code i put in 22:45 isnt working for some reason its not staying still and it doesnt spawn infront of the player even if i move the entities sprite what do i do
Thank you for all your efforts. My 9 year old son is now the king of his code club having followed your tutorial and has started asking me to teach him what sin, cos and tan are - wish me luck ;-) Your content is so well put together thank you so much. We had a couple of troubleshooty moments that were a bit challenging along the way and it would be really useful if you could add some screenshots of the complete finished code blocks somewhere to help though?
griffpatch is like that one teacher who trys to be funny, cool and understanding...
...and succeeds
huh?
How can you not understand that .-. @@coldfrozenmuscles1575
How is this the top comment if it only has 30 likes
true
??? Might be a bug 😕
Honestly, I can't help being mind blown by the clever techniques you place in your tutorials! It's amazing!
How did he not think of a sniper scope 😂
Yes his tutorials are amazing 🤩
@@vladimir6201 it’s still 3d it doesn’t need that
Now I finally understand why Minecraft completely breaks when you swap the sin and cos functions. I used to think they weren't very important, but it turns out they're used a ton for rendering 3D games! I had no idea!
@@lightning_11 hrmm
i'm makin one of these in python, and this was the best tutorial I could find! , even though it isn't in python, the way he makes complex concepts so easy to grasp is brilliant!
I love how griffpatch shares his knowledge to other Scratchers that needed help on their projects. I often learned how to use blocks that I haven't used before.
I learned how to use the "Mod" Block from His Platformer tutorial.
i wouldnt what a custom block was without griffpatch
you just gotta love griffpatch's videos, he's just always so cheerful and fun to watch! just how he interacts with Nano is fun and playful, and it just creates such a welcoming and happy atmosphere for the video. absolutely just a joy to watch and follow along
scratch in 2022: we can finally be able to create perfect 3d game..
scratch in 2069: now how beautiful that ray-tracing graphics we are making..
Nice
Thats already possible im sure
scratch 3033: you can use the block codes to hack into russias systems and launch all of the missiles onto russia
raytracers already exist :)
@@evilfire94090 yea
It would be really cool to see how to make the walls have patterns, add looking up and down, add objects and make the map bigger using some sort of scrolling mechanism. Maybe even add random or infinite map generation.
Yes, we NEED texture mapping
Yes, just, yes
I bet you could do it with lists. You could probably turn a list into a cube list instead of a grid list, and store the colors as the values for the list. When the raycaster senses a wall, it can detect what color you want by what value is in the list
This could really help with a my Windows 95 Screensaver project
@@IceGuy369 yesss
This is hands down, my favorite series in all of TH-cam. (I really love programming.) so ofc, griffpatch’s series are the best, and his 3D series is definately the best series out of all of the ones he had made. All of this 3D stuff is super cool, and makes me super excited. I love it!!! I hope griffpatch doesn’t hold back on fear that it might get to difficult. I really love learning about all of this, and am really confident in my ability to follow along. I want to put all of this 3D stuff to it’s fullest potential.
Woohoo!!! :D
Can you release part 4? I like your coding griffpatch
@@AlexanderO_TheGamer I’m sure he’s working on it. Just give him some time.
yaaaaaaaaaaaaaaaaaass
Ye
When I turn away from my entity, it just gets bigger and bigger until it loops back around, becomes really small, and then grows again until i'm looking back at it.
same
Same
Go to entities code and for the set VY to make sure that it’s X times sin of camera DIR PLUS NOT MINUS Y times cosine of Camera DIR that should fix it
Same idk why
Make sure that you didn’t delete the purple square
I love how he explains everything so well
From where we can get height plz replay
@@FitWithJenish Episode 2.
hello Griff, I love your tutorials and games on scratch and am currently working on a platformer using your series. Keep up the amazing work.
Glad you like them!
@🟡 Ali's Game World 🟡 Me too
@@griffpatch The tutorials are amazing
@@haticedemirgan4296 Me three!
@@griffpatch Awesome!
Can we appreciate how much effort griffpatch put into editing
So much - hehe
@@griffpatch I would think so and the editing is amazing 🤩 never better
@@Ipostmemes1 idk what's the application he uses 🧐, pls tell me
@@GAMEOVER-ud3rp idk either
Its scratch
Dang! The quality of this video! As always, awesome tutorial! And thanks
@Kaniishh Jaey - Fortnite Fun
How is this 3days ago if this episode is only today
@@MamaMoLangNaman20 cuz he's a member
@Kaniishh Jaey - I Make Games it says day at my screen 😅
@@RandomGeometryDashGuy what?
man, i like how griff went from "easy scratch game" to TRIGONOMETRY
yeah and he turned trigenometry simple
Hello, I love what you do and I'm a scrapper too! And thanks to you, I'm getting better and better!
Thank you for these tutorials that allow passionate scratcher like me to do things (like you) incredible!
This is simply incredible! It amazes me that someone can create this in scratch!
3D in scratch never ceases to amaze me
Wow I love it, its so easy to copy these tutorials and slowly, I'm becoming smarter in coding! I'm sure all your fans are having the same thing griffpatch! We all would like to thank you for this!
Great to hear! - Thanks a lot - and Scratch on!
i am having the same experience, griffpatch is a hero!
Grifftpatch is not only the best scratcher, but also a very good person at maths.
I understand the whole thing and even came up with the rotation beforehand with complex numbers but I would have never come up with this myself. Amazing work griffpatch! However I think an SDF raymarching that allows for a z position would be great to have. Here are some useful formulas if you need them:
Union of A and B: min(a, b)
Intersection of A and B: max(a, b)
B subtracted from A: max(a, -b)
Where a and b are the SDFs of A and B respectively.
Method of creating a floor: after drawing a ray, you need to set the brightness to 100% and set the color of which will be the floor and after that you need to move the drawing lines to the edge of the map.
dumb it down by alot pls
@@drawsap lol
This is one of your best videos. Your making harder and tougher projects to code for long-time fans like me. Keep it up griffpatch!
Wow, thanks!
i like you griff
14:47 imagine we can definitely make a 2d mini map display then put it at any viewport corner
I tried making Maps. its hard.
Easy make a map grab the same collision script then, put it at the exact position your standing, then you're done
@@kennethmackissack9022 agree
@@TheDakey12 please explain i am very confused
@@jofsalter He means scaling down the collisions of the map and sticking it in the top right as another sprite, but I don't know about the player and other stuff
I used your random maze script with this project as well. i had to change the stamping of corridors into clones to get it working in game, however the moment i start raycasting clones, the game gets really laggy compared to when it was only raycasting off a single large sprite. anyone find a way to generate random mazes without lagging the raycaster?
scratch 2023:making peaceful 3d games
scratch 9093: controlling other people
Hey griffpatch, love your tutorials. They are very clear and in depth. I have a request, can you make a video on a topic we all are afraid of? Lists! Seeing your other tutorials I am sure that you'll explain this topic very well. Thanks
If you are going to make a new one, could you add textured walls?? Maybe with sprites or pen patterns
only issue(s)
1. Alot of M A T H
2. How to make the pen correctly draw the texture
but its a great idea since textured floors and walls makes the game look better
@@PrivacyNProgramming no its simple, you can just use another go to x x y 0-height/2 pen down set y to height/2 pen up
@@Pratixxoh, i thought it would be much harder but thanks :)
@@PrivacyNProgramming actually i messed this up a bit, you just tweak it around a bit and it should then eventually work
@@Pratixx oh ok, its fine since we can wait till the next part :)
If it's possible, you should make a episode where you can change the walls appearance, have ramps or stairs or make it able to have outside areas
deffinitly
Probably could he made on with stairs before
that impossible because in episode one he said make sure there are no gaps otherwise we would get great lag
To make stairs, you need to heavily modify scripts to make the project support stair collision.
@@maxsanby9974 It is possible, you just need a different type of raycaster. Adding stairs does not mean you have to leave gaps on the edge.
I love how much this looks like you're just teaching us how to make it run Doom. Because Doom looks a lot like it uses the same formulas!
I CAN SEE WHY LITTLE ME WAS SO OVERWHELMED NOW... The new position after rotation formula is making my brain hurt just by looking at it
@@virtuedreamer6623 bro a whole different person in under a month
I’m killing myself because of how hard the rotation formula is
Everyone: Trouble calculating division. Griffpatch: Just casually calculating how old the Earth is
This is just amazing! I hope you will release some more videos on how to add stuff in 3D!! Btw. this game reminds me of The elder scrolls 1 or 2 :D
I love his humorous and fun way to teach. The other tutors are usually like, put this and that and here and there and you have it, your game. We don’t learn anything.
i mean, the maths kinda confuses me soooo
@@neo1754 Lol true
I made some slight changes with the FOV change,
In "Define (Single Ray)" script, scroll down until you see the "set pen brightness" block.
"Set pen brightness to (120 - (distance / (DV / 300)))"
When you do that, when you slide up the fov, the brightness will change even darker, like the player moving.
I gona Remake the backrooms.
Me too
ok
Noice
Me too
There's a bunch of games like that
I'd love to see how I can make the player look up or down, and how to move the camera with the mouse, like in games like COD or Minecraft, it would be VERY useful :D
In the next episode can you make something like doors to next levels? That would be cool
Oh yeah like a portal, that would be so cool
@@Aiaimonkey8093 thats actually simpler than you think, you can just make it when the player touches a sprite on the map, teleport them to this x and this y. and you can also add raycasting to that as well
@@Pratixx you can just change the level costume if the player sprite touches a certain portion of the map. used this to code in some dynamic obstacles
I think this is the episode where things go from "simple and intuitive" to "just trust the maths!"
There's a reason he dropped "simple" out of the title in favor of "fun".
just trust the lag!
Learning math from school ❌
Learning math from griffpatch✅
Nano isn’t showing up on my screen
WE GONNA MAKE BACKROOMS AND THE ENTITIES WITH THIS ONE!!🔥🔥🔥
same
That's Awesome! Could You add the Following Episodes in a Platformer Tutorial?
- 12: Moving Saws and Trampolines!
- 13: Add Death animations
- 14: Smooth Platform Movements
- 15/Final Episode: Bosses and Goal!
Please Reply Griffpatch if You Like It!
I do love all those! I have a similar list myself :D
@@griffpatch Make a Episode of platformer game it is been long time for that episode
@@parthsolanki2617 TRAMPOLINESSSSSSS
and TELEPORTERS
me after showing this to people knowing damn well i have no clue what i did
i was wanting to fix the walls warping towards us problem so badly when i saw the linear distribution explanation thing!!! thank you griffpatch
i used this for my 3d plane game and my engine 2 engine, thank you for this series! without this series I could not have made my 3D scratch games!
you should change the "simple" in the description
I already did... But the post link perhaps doesn't change?
@@griffpatch i think so!
@@griffpatch im encountering a bug where when i look around my entity just zips and zaps around the random spots on the map?? but when i check my code its the exact same as yours
my guy making the backrooms 💀
💀 why is that so true
I just love how much efort you make in these videos
something i really like about this is how when i set the FOV to a multiple of 180 everything just flips again, and again, and again yet nothing else changes. (like how it works in other games)
griffpatch: changes (set height to 4000 / distance) to (set height to dv / distance)
me: does the same thing
my game: OH BOI WE ZOOMIN
I love all his videos and how he brings about a cheerful environment. it would be really cool if he could make a mini 2d map and then turn it into a multiplayer game
thank you so much for this tutorial griffpatch! these tutorials have helped me so much.
scratch be like:new fun coding app for kids
griffpatch be like:i can make anything i want in scratch
ty griffpatch for being so cool and teaching all of us so many new stuff.i dont not know how to code in scratch until i saw your videoes.i got A+ last last month with my computer skills exam on scratch.
i remember that griffpatch's first platformer video was still really good - this is even better
Ensure to tick the run without screen refresh! This got me on the floor
"Now we will be using trignometry again, thank you wikipedia" got me dying
i really appreciate how you explain all this stuff, these tutorials are so good
I try my best :) thanks
@@griffpatch you are amazing
@@griffpatch When i do the thing on 8:50, it just breaks the raycasting and it just became one-dimensional raycaster. How am i gonna do that if it just goes 1D instead of being working as a 3D?
i like your tutorials Griffpatch, because instead of repeating your moves i actually understand them!
Splendid
griffpatch is changing the future with this
At every video you broke my brain with your ingenius ideas ! Sorry for my english, I'm french
I love Griffpatch's enthusiasm, It just makes coding a lot more fun, and it makes learning so entertaining! It really makes me want to continue game development! Thanks, griffpatch!
love it griffpatch and my raycaster work perfectly so far thanks man
This man explains everything so well and easy too learn
Oh this is the perfect way to make a multiplayer scratch game
Griffpatch! Thanks you for adding my 3D Raycaster E3! Oh, It has 53 views! That is the most amount of views I have ever seen on my Scratch account!🤩
If there was an award for the best scratcher of the year , then it would be you griffpatch.
Fun fact: if you want to make multiple wall colours or objects, duplicate the level sprite and Change the sprite sprite shape by redrawing it (optional) and then change the pen colour, the object will then be a different colour to the walls
Bro, Griffphatch is so helpful
I have been doing this raycasting for while now
Geometry dash and Lemon invation failed, but not me
Im happy with Griffpatch's teaching
My heart is still shaking of horror because I’m making a horror game with this and I wanted to see my like freaking SCP HERE and it popped into my face and I don’t know I I passed out or not
Everybody talking about how coll it is but lets talk about the lemon at 4:53
You are the best scratch helper ever thanks you for all of your help
i am amazed by griffpatch explaining math like spittin' bars
Someone give me holy water, u did costa tacos i forgot that maths but you seem to be the thanos of geniuses
This guy can explain better then my computer teacher teaching us how to make i fricing 2D catch game
you should get the worlds best scratcher award
I found an issue with mine... when I made the Player Tick Block, it completely changed my movement
Dude, I’ve followed EXACTLY what he does and now my thing is broken and I can’t go on. I checked all the videos for mistakes, and I haven’t made any. Literally just after the first Tidy Up section something broke my movement. The play goes in random directions and camera does not move. I have two copies of before and after, and before works like a charm, but the after is super broken. How am I supposed to get this working?? I’ve been stuck on it for 30 minutes.
the code i put in 22:45 isnt working for some reason its not staying still and it doesnt spawn infront of the player even if i move the entities sprite what do i do
I don't need of a shadow in my entity's foot.
You might hit 300K views by the end of the year
This is The BEST tutorial ever
This is so awesome. This guy is quite an expert
griffpatchs making are the best from scratch!
SO easy to understand and is very cool👌
Thank you for all your efforts. My 9 year old son is now the king of his code club having followed your tutorial and has started asking me to teach him what sin, cos and tan are - wish me luck ;-) Your content is so well put together thank you so much.
We had a couple of troubleshooty moments that were a bit challenging along the way and it would be really useful if you could add some screenshots of the complete finished code blocks somewhere to help though?
23:15 bro I have quad billion checked the code so many times and it won’t STAY STIIL please tell me to do
Same
Ong bro same
"hey, look at this cool 3d game I made!"
"Cool! How did you make it?"
"I have no idea."
I can't help liking it like mad
Good Job Griffpatch!!! Keep up the awsome work
Lemon at 4:52, After the ''But *NOT* These Walls! *:(* '' moves down and dissapears
is it me or EVERYTIME Griffpatch Says The Word "Tick." He Talks About A Clock For A Couple Seconds
18:42 Me: Uses NULL from Baldi.
Thanks griffpatch for the amazing tutorial! it helped me a lot!
Tip:go to the if else block in the sprite raycast then go to (else) by changing the numbers you can change the color
the fact that he says maths instead of math is strange but fun
Because it is called maths
I've been making a perfect doom edition an i needed help then I realized you an you helped, thanks
after fixing some bugs i got it working mann yea!
Wow! Griffpatch sure does know how to do some maths!
When i was running away from my NPC nano i saw another nano in the abyys and i got ino laughter mode lol
the whole hallway dissapeared when i was following one of your instructions
thanks for your tutorials because you want to help the noobs from scratch😇