In case anyone here is curious, we say dx and dy because d stands for delta, which basically just means difference or change, so dx means the change in x, and dy means change in y
@@tanayanshureddy7323 d usually stands for delta, and the variable is basically the change in x, so if it was for direction,it would be called direction
Coming back to the series that got me into programming after finishing making an entire 3d engine in c and c++ from nothing, cool. Glad to see I can go back to simple times.
So true. However, I don't know why I actually understand every piece of code griffpatch codes, but when I watch other youtubers, I just copy, I don't understand any code.
i had a different approach to 9:32 instead of adding a hitbox, you can also check if the player collides with anything when turning, this way the collisions are more realistic and you can turn without getting inside the wall
I've never actually watched your tutorials before, because i usually get on fine by my self, but when it comes to 3d game making, I get stuck :/ thank you for being here to help so many scratchers. : )
@@igglywigglyw0rm Good Point! but from a technical point the Pen blocks are more efficient. They are more optimized than clones HOWEVER Clone ARE better in some cases such as for very detailed Sprites but each side has their pros and cons. :D
these 18 minutes of my life felt like seconds! thank to you griffpatch for this awesome tutorial. I will now go watch the 2nd episode and hopes it will be as fun as this one.
if you don't know what cos and sin is then I will tell you cos and sin are the line lengths form the Hypotenuse. sin starts as a angle form one of the sides that is not 90, and going in a Stright line will be the opposite line from the angle so sin=o/h cos is the line adjacent from the angle that is not the Hypotenuse so cos=a/h 12:30
This tutorial set is amazing! I have been working on a 3D speedrunable minecraft recreation on Scratch and I think I can finally master the art of 3D! Thanks!
Minecraft uses very different 3D mechanics than raycasting. Raycasting isn't actually 3d, it's just 2d but with length. For this reason, you typically can't look up and down with raycasting. Minecraft uses actual 3D objects and rotates them around with trigonometry
Here’s an idea for movement you have an invisible sprite that follows the mouse take the X of the sprite and once the sprite goes too far from the center it turns, the farther it is from the center the faster it turns. You can do this by the sprite being greater then like X100 or less than X-100 and use variables to communicate that to the player sprite. Then you can have WASD/arrow keys in one hand mouse in the other
The wall collision detection that he taught us really helped me! I was having trouble with it, but then I watched this video for fun, and I learned how! thanks!
Wohoo 🎉 we have the video 3 days early - or even more 😍 THANK YOU GRIFFPATCH ❤️ I CURRENTLY FOLLOW THE TILE SCROLLING GAME SERIE, YOUR TUTORIALS ARE AWESOME 🔥
Griffpatch: *Physical quantity: A physical quantity is a quantity in physics that can be measured, thus a physical property that can be quantified. Examples of physical quantities are mass, amount of substance, length, time, temperature, electric current, light intensity, force, velocity, density, and many others.* *A physical quantity is a physical property of a material or system that can be quantified by measurement. A physical quantity can be expressed as a value, which is the algebraic multiplication of a numerical value and a unit. For example, the physical quantity mass can be quantified as n kg, where n is the numerical value and kg is the unit.* Everyone: *ok i understand you because this is a kids app*
This is such a great tutorial, I’ve ALWAYS had issues with movement and collisions, but your system is so simple! I always thought about using hit boxes but always as separate sprites, I didn’t think that quick swapping costumes would actually work and not look weird.
Hi griffpatch! Thanks for the amazing tutorial! You always manage to take complex concepts and break them down into easy and simple steps. Can't wait for part 2! Also Congratulations on 100k subs! It would be cool if you made some tutorials on Full-3D and Infinite cloud engines in the future - I know they are complicated but I think you could explain it very well :).
How to clip trough a wall: 1. Walk into a wall 2. Hold the opposite key for walking 3. Release the first key you walked with to the wall 4. YOU CLIPPED TROUGH A WALL
Fun fact: If you put the code: [IF [[Left Arrow Clicked] or [[Mouse Down] And [Mouse (X/Y) = [(x-180-x180 or y-100-y100] It will allow you to use Arrow Movement+Touchscreen movement (for cross compatibilitable movement controls)
I've been on Scratch since basically its inception, around 2007, when I was like 4... I have some semi-popular projects over the course of my 2 main accounts (only a couple projects I think are actually descent and deserve it), but I've never tried dabbling in the 3D before, except for looking at your 3D FPS demo from many years ago, but that was WAY over my head at that time lol. The only thing I knew how to change was the sound effects, so I added Perfect Dark Falcon 2 sfx and PD soundtrack. 😅 I'm probably not gonna actually get back into releasing Scratch projects, the last time I was active in that regard was 2017-18 with my NES Mario Odyssey project... but I'm definitely curious to see how easy you can make 3D raycasting be! You've always been the king of Scratch so I'm excited to follow on along
@supernom Yep! I was working on it very hard after Odyssey got announced at E3 2017, and New Donk City was a big focus of the game at the time, so it seemed like a good place to set my demo! With my old laptop, it became very hard to keep running the game in a playable state since I didn't really know how to clean up the code much to improve performance (I feel it could have been done by someone like Griffpatch, haha). Otherwise, I would have added a LOT more to the game-- I had big ambitions, evident by all the unused content in the project! Lol
This looks amazing, I was messing around the other day with making a fully-3d game but I was having a lot of problems with it, I should probably start with something simpler (such as this).
i will simplify this as good as possible. You create a map with a player, and the rays can be explained by if the longer the ray is, the darker and smaller it is. if it is too dark, it should dissapear from the player’s perspective.
The people saying to griffpatch congrats on 100K are stupid because its 2023 now so that means... CONGRATS ON 200K GRIFFPATCH FOR 2023!!!!! YOU ARE THE BEST AND GOAT AT SCRATCH!!!!
amazing tutorial. i did it with my kids and added some explanations. it's perfect for teaching. you explained very well so far. i visualized some things for my kids for a better understanding, what you can't do in videos obviously. it's a perfect base. we will continue your tutorials the next weeks. i'll try to comment also the other ones with out progress. thank you! i didn't expect 3d would be possible. i'm also learning some things here 😂
You don't have to do all 12 if you just want a 3D maze then take the first 2 but next level? Then you may take some of the other 10, or even crazier all 10.
This is crazy. Good job! Once this 3D thing is complete, we'll finally have wonky games and interesting styles on Scratch! PS Do dx and dy mean difference x and difference y, or something else?
griffpatch when i was doing this my cat spud flopped onto the keyboard and i had to wait for him to get up lol (i became a member yesterday so this is my first early access video)
griffpatch can you make a tutorial on a 3d project which has all x y and z movements beaause i think it would be really cool to also go up and down levels. Thanks for all the great content.
Hello griffpatch! I am a scratch user from the United States of America, and I am using your tutorials to make my own 3d liminal space maze! ill reply as soon as its done! :)
Omg, I'm so excited for this! I already have lots of ideas, and been wanting to make a 3D game in scratch for a long time. Thanks for the tutorials you create, it helps me learn a lot!
10:00 I discovered that the player's movement is smoother on walls if the hitbox is a circle and not a square. I would convert to bitmap to do this though, because the circle will be pixelated the moment you click something else.
EPISODE 2 - ruclips.net/video/Vihr-PVjWF4/видео.html
Full Episode Playlist - ruclips.net/p/PLy4zsTUHwGJKolO9Ko_j6IStFIJnTYBul
Quick and Fun Tutorials - ruclips.net/p/PLy4zsTUHwGJKByTn_qV76oTpEYGczqEb_
Channel membership with perks - www.youtube.com/@griffpatch/join
ok
tysm!!!
I copy your maze
Next thing bro is making gta 3 bruh😂 nice
Hey um l have a question about 4:37 I tried doing it but it a loop do you know to how to fix it?? Thank you 🙏
In case anyone here is curious, we say dx and dy because d stands for delta, which basically just means difference or change, so dx means the change in x, and dy means change in y
hmmmmm are you sure d isnt direction?
@@tanayanshureddy7323 It is delta of x, in mathematical denotation it is usually delta of x
u sure it isnt deridative
@@khiemgom It's delta for sure
@@tanayanshureddy7323 d usually stands for delta, and the variable is basically the change in x, so if it was for direction,it would be called direction
Coming back to the series that got me into programming after finishing making an entire 3d engine in c and c++ from nothing, cool. Glad to see I can go back to simple times.
For those that are confused about the sine and co-sign, they are just trigonometric functions that allow you to find side lengths of a right triangle.
The fact that people are actually able to make stuff this complex on scratch is just downright awesome
Yeah, like, old me would just say "H O W ? !"
Finally a method to stop the wall snagging! I figured out everything else but could never find a way around it until now :D
I really wanted to code, and I was relieved at 4:12 when you said we were finally going to code!
how old are you brother
@Pineapple Sandwich ?
it would be "are," he's calling Ishaan brother
@@pineapplesandwich3906 "how old *is* you" isnt proper english i think you need to go back to school
@@simplylou8631 true but he could also be saying "how old is your brother"
@@LukasDrakon brother is just a thing people call each other
8:15 13:28 You can also multiply by -1
If we combined this with Sprite Layering, we could make good 3d!
Not gonna lie i binge watched this series and it went absolutely flawless!
Griffpatch: this is simple
Also Griffpatch: proceeds to explain quantam physics like spitting bars
Literally
me: NO 1 + 5 IS 2!!!!!!!!!!!!
@@klolddlolk3488 then 6 + 1 is 3
not really
\\@@alraodah 6 + 1 is 3
So true. However, I don't know why I actually understand every piece of code griffpatch codes, but when I watch other youtubers, I just copy, I don't understand any code.
Imagine this tutorial, but the level is made by griffpatch's random maze generation tutorial! How fun would that be?
Best idea ever
@@star_fall_1 I agree
OH NOOOOOOOOOOOOOOOOOOO
Imagine this tutorial, but the tutorial (script and everything) is made by Griffpatch's Random Maze Generation!
OMG complicated mazes
0:08
"Perhaps just two episodes"
i had a different approach to 9:32
instead of adding a hitbox, you can also check if the player collides with anything when turning, this way the collisions are more realistic and you can turn without getting inside the wall
its gonna look weird on the 3d part of the tutorial though
I've never actually watched your tutorials before, because i usually get on fine by my self, but when it comes to 3d game making, I get stuck :/
thank you for being here to help so many scratchers. : )
I actually love this guy. I love how he designs and teaches. My favorite Scratch game developer.
Thank you so much for sharing these stuff for free. Huge respects.
Wow this is incredible, to see how 3D graphics in scratch are unheard of!
This is how you start it stupid
Check out the green flash for actual 3d projects. This is raycasting and can only draw WALLS. Still Pretty cool though
@@igglywigglyw0rm Good Point! but from a technical point the Pen blocks are more efficient. They are more optimized than clones HOWEVER Clone ARE better in some cases such as for very detailed Sprites but each side has their pros and cons. :D
these 18 minutes of my life felt like seconds! thank to you griffpatch for this awesome tutorial. I will now go watch the 2nd episode and hopes it will be as fun as this one.
Yay! I really wanted a 3D/2.5D Scratch tutorial, and as it seems griffpatch really does listen to his fans! Really nice :)
I do, I do :D
2.5?
Gosh, this has so much potential!! I can't wait to see what amazing things the community will make out of this!
Im gonna make doom!
d o o m
O_O I HAVE SEEN YOU ON SCRATCH!
@@Dichete exactly what I thought
literally creates a rickrolling maze
I like how short griffpatch's code is and so simple but it makes such good gameplay.
That's how you know he's a genius!
if you don't know what cos and sin is then I will tell you cos and sin are the line lengths form the Hypotenuse. sin starts as a angle form one of the sides that is not 90, and going in a Stright line will be the opposite line from the angle so sin=o/h
cos is the line adjacent from the angle that is not the Hypotenuse so cos=a/h 12:30
Can't believe you made a whole tutorial without using a single variable. Also thanks for the video I can't wait for ep 2!
You're welcome!
me wh0 hasnt watched it all yet: he didn't?
...
Ikr
@@alihesham8167 yeah exactly
This tutorial set is amazing! I have been working on a 3D speedrunable minecraft recreation on Scratch and I think I can finally master the art of 3D! Thanks!
Minecraft uses very different 3D mechanics than raycasting. Raycasting isn't actually 3d, it's just 2d but with length. For this reason, you typically can't look up and down with raycasting. Minecraft uses actual 3D objects and rotates them around with trigonometry
Combining this with multiplayer would make for very interesting games
Here’s an idea for movement you have an invisible sprite that follows the mouse take the X of the sprite and once the sprite goes too far from the center it turns, the farther it is from the center the faster it turns. You can do this by the sprite being greater then like X100 or less than X-100 and use variables to communicate that to the player sprite. Then you can have WASD/arrow keys in one hand mouse in the other
Griffpatch: Perhaps just 2 episodes
Also griffpatch: makes more than 10
AMAZING !! I really wanted to make a 3d maze so Thank you for making this tutorial
Give me your fafnir
You're literally the best scratcher ever. This tutorial is AMAZING!!
i think two
You are yhe best scratcher ever! I've making games in scratch too!
The wall collision detection that he taught us really helped me! I was having trouble with it, but then I watched this video for fun, and I learned how! thanks!
Wohoo 🎉 we have the video 3 days early - or even more 😍
THANK YOU GRIFFPATCH ❤️ I CURRENTLY FOLLOW THE TILE SCROLLING GAME SERIE, YOUR TUTORIALS ARE AWESOME 🔥
4:00 for anyone on chromebook, make sure to use ctrl instead of alt
I love your great joy and energy its contagious and makes my day! Your understanding of coding is incredible, Keep up the brilliant work!
Griffpatch: *Physical quantity: A physical quantity is a quantity in physics that can be measured, thus a physical property that can be quantified. Examples of physical quantities are mass, amount of substance, length, time, temperature, electric current, light intensity, force, velocity, density, and many others.*
*A physical quantity is a physical property of a material or system that can be quantified by measurement. A physical quantity can be expressed as a value, which is the algebraic multiplication of a numerical value and a unit. For example, the physical quantity mass can be quantified as n kg, where n is the numerical value and kg is the unit.*
Everyone: *ok i understand you because this is a kids app*
Yes.
wut?
@@livioplaystoomuchminecraft wut as well this looks like what a physicist would say
this channel is my favourite channel
thank YOu so much griffpatch!!!
The most excited-sounding griffpatch intro yet
Congrats on 100K subs! I can’t wait to make a mystery style game out of this!
about he had 99k subs i subscibed to him
@@noogbei-roblox he had about 70 K when I subbed I’m pretty sure. It was when he made episode 3 of classic platforming
@@noogbei-roblox he would be 103K I subbed Him and he's now 104K !!
@@kiritofansgamingwithcamel5391 i subbed when had like 40k maybe?
@@xoS1d Hmm well ok.
This is such a great tutorial, I’ve ALWAYS had issues with movement and collisions, but your system is so simple! I always thought about using hit boxes but always as separate sprites, I didn’t think that quick swapping costumes would actually work and not look weird.
Congrats on 100K! Awesome Tutorial!
Thank you griffpatch! It really wrams my heart when the code is also explianed so our minds aren't left tinkering about. ❤
I really meant warms in the section that said wrams
Hi griffpatch! Thanks for the amazing tutorial! You always manage to take complex concepts and break them down into easy and simple steps. Can't wait for part 2! Also Congratulations on 100k subs! It would be cool if you made some tutorials on Full-3D and Infinite cloud engines in the future - I know they are complicated but I think you could explain it very well :).
You're very welcome!
I can't wait for part 2, I wouldn't have been able to make things like this without you!
I watched this video and then came out, knowing how to fix like all of my scratch games
How to clip trough a wall:
1. Walk into a wall
2. Hold the opposite key for walking
3. Release the first key you walked with to the wall
4. YOU CLIPPED TROUGH A WALL
Lol i can imagine someone exploiting a 3d game and litteraly finishing the game in a matter of seconds
I clipped through my wall irl
I clipped to the backrooms. I love it here
i dont use scratch but im still subbed. The editing on this channel is so clean, the explanation makes such a seemingly complex idea look simple.
Thanks for the sub! I appreciate your comment a lot :)
@micro_hat Yes if you bring in the mobile joystick tutorial also available on this channel
To me, you speak like a primary school teacher, and honestly it makes learning this feel a lot less stressful.
Oh my gosh! Thanks so much for this! I found this extremely helpful! (By the way I am a big fan of you griffpatch.)
You are so dedicated to helping us Scratch nerds learn how to make games and fun projects. Bless you!
Fun fact: If you put the code:
[IF [[Left Arrow Clicked] or [[Mouse Down] And [Mouse (X/Y) = [(x-180-x180 or y-100-y100]
It will allow you to use Arrow Movement+Touchscreen movement (for cross compatibilitable movement controls)
This tutorial was so fun! I'm so excited for part 2!
Im too :D
Tell me about it, Griffpatch’s videos excitement is like excitement you get from gucci bags Louis Vuitton, or a new IPad or iPhone
YAS LET GOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO MAKE LIVE MULTIPLAYER FIRST-PERSON PLATFORMER!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
mate, people are using this for other engines like gamemaker! its just such an amazing tutorial that you can follow even tho you arent using scratch
I've been on Scratch since basically its inception, around 2007, when I was like 4... I have some semi-popular projects over the course of my 2 main accounts (only a couple projects I think are actually descent and deserve it), but I've never tried dabbling in the 3D before, except for looking at your 3D FPS demo from many years ago, but that was WAY over my head at that time lol. The only thing I knew how to change was the sound effects, so I added Perfect Dark Falcon 2 sfx and PD soundtrack. 😅
I'm probably not gonna actually get back into releasing Scratch projects, the last time I was active in that regard was 2017-18 with my NES Mario Odyssey project... but I'm definitely curious to see how easy you can make 3D raycasting be! You've always been the king of Scratch so I'm excited to follow on along
Awesome :) - That's so cool. I wonder if I saw your Mario Odyssey project...? I might have done!
Eyy remember me?
@supernom Yep! I was working on it very hard after Odyssey got announced at E3 2017, and New Donk City was a big focus of the game at the time, so it seemed like a good place to set my demo!
With my old laptop, it became very hard to keep running the game in a playable state since I didn't really know how to clean up the code much to improve performance (I feel it could have been done by someone like Griffpatch, haha). Otherwise, I would have added a LOT more to the game-- I had big ambitions, evident by all the unused content in the project! Lol
@@griffpatch your verified lets g
No way I loved that one
This episode was amazing! I can not wait for part two!
Griffpatch: 0:07 “This is gonna be probably 2 episodes”
Also Griffpatch: *makes 12 episodes*
Griffpatch: *explains quantum physics*
Also Griffpatch: good job everyone!
*do 19 year old math*
Also Griffpatch *good gob I like it*
This looks amazing, I was messing around the other day with making a fully-3d game but I was having a lot of problems with it, I should probably start with something simpler (such as this).
bro i was thinking this too but..........
i have a lot of work
i will simplify this as good as possible.
You create a map with a player, and the rays can be explained by if the longer the ray is, the darker and smaller it is. if it is too dark, it should dissapear from the player’s perspective.
Congrats on 100k. :b
Always wanted to make a Petscop-ish type game. Bet this will help.
i dont wanna like comment couse i wanna keep it at 21
I almost forgot; congrats on 100K! Your channel is growing faster than I'd ever imagined, both in content and in audience count! 📈📈📈
And thanks so much for being one of my longest standing members :D That means a lot! Thanks for your support
@@griffpatch hey can u make a video about mobile support?
The people saying to griffpatch congrats on 100K are stupid because its 2023 now so that means...
CONGRATS ON 200K GRIFFPATCH FOR 2023!!!!! YOU ARE THE BEST AND GOAT AT SCRATCH!!!!
WE NEED A PART TWO!!!
ok here's 6 more
Very nice tutorial. I love how this is going. Congrats on 100k subs too!
and congrats on being verified too
amazing tutorial. i did it with my kids and added some explanations. it's perfect for teaching. you explained very well so far. i visualized some things for my kids for a better understanding, what you can't do in videos obviously. it's a perfect base. we will continue your tutorials the next weeks. i'll try to comment also the other ones with out progress. thank you! i didn't expect 3d would be possible. i'm also learning some things here 😂
5:43 There's actually a better way to handle controls. Bool triggers are handled via 0/1.
This is a really smart method to easily create a 3D world, but are there other ways to make it maybe more realistic?
Yes there are, but we are a little limited by Scratch. The better you want it to look, the more difficult it gets sadly.
Doom lookin graphics are good enough
griffpatch: perhaps just 2 episodes
series: NUH UH!!!
10 WHOLE EPISODES
You don't have to do all 12 if you just want a 3D maze then take the first 2 but next level? Then you may take some of the other 10, or even crazier all 10.
This is crazy. Good job! Once this 3D thing is complete, we'll finally have wonky games and interesting styles on Scratch!
PS Do dx and dy mean difference x and difference y, or something else?
That's right, difference x & y :)
@@griffpatch I always thought it was derivative x and y.
@@EHMM I think is some cases it can refer to this, but in coding it's more likely to be referred to as difference, or delta (or change in value)
griffpatch when i was doing this my cat spud flopped onto the keyboard and i had to wait for him to get up lol (i became a member yesterday so this is my first early access video)
He he :) cats! Welcome to the membership and give spud a tickle from me :)
@@griffpatch Cat? What the hell...
THANKS REALLY MUCH!!!, I can finally make 3D games I was trapped in only making 2D games, and now i can make 3D games
Are we going to be adding enemies that follow the player? If so, this could make some really cool puzzle/escape games :D
Like Zardy's maze! :D
Doom in Scratch?
Or backrooms
@@larandomgurl I’m making the backrooms with this, I just have to figure out how to do enemies
@@larandomgurl or FNaF
You never fail to disappoint me…
That came out wrong.
Wait wot
This guy is the most energetic person ive ever heard
me: i dont want videos to be too long
griffpatch: gives 18 minutes of awesomeness
me: thanks
Bro so many calculations 😓💀💀💀☠️☠️
others: i don't want a too long video
griffpatch: HALF AN HOUR (OR MORE) OF FUN!
I am using Scratch 2 and this still works. Thanks Griffpatch!
Fun fact: if the hitbox didnt work by 4x4 the 12x12 can help alot
griffpatch can you make a tutorial on a 3d project which has all x y and z movements beaause i think it would be really cool to also go up and down levels. Thanks for all the great content.
I agree
Hello griffpatch! I am a scratch user from the United States of America, and I am using your tutorials to make my own 3d liminal space maze! ill reply as soon as its done! :)
Congrats on 100K subs you are the BEST scratch coder!!
9:41 what if i use a circle as the hitbox?
It's pretty much the same.
Omg, I'm so excited for this! I already have lots of ideas, and been wanting to make a 3D game in scratch for a long time. Thanks for the tutorials you create, it helps me learn a lot!
griffpatch: this is a mini series, probably 2 episodes.
also griffpatch: *begins working on episode 6*
griffpatch: the game is complete, except for the small bug that there is no collision scripts
Lol
Griffpatch: Draw a 4x4 square
Also griffpatch: *proceeds to draw a 1x1 square*
It's working...
*me looking for his scratch account so i can just remix it*
10:00 I discovered that the player's movement is smoother on walls if the hitbox is a circle and not a square. I would convert to bitmap to do this though, because the circle will be pixelated the moment you click something else.
me: IQ = 3 griffpatch IQ = infinity
Griffpatch is god of scratchers, he is the god of tutorials, he is the god of scratch games
i am unironically using this for pygame & opengl to create something similar & it is actually very helpful
He made 2 episodes, then decided to add 10 more XD, Love the content!
I play ur geometry dash scratch game during school with my friends, u did a amazing job! I just found this channel to and subbed😊
the wall snagging part was useful for helping me with a game i was coding (i was trying to code collisions) thanks!
Omg I love ur games especially getting over it I almost beat the world record but was 15 secs to long
I followed this tutorial and it helped me out, i wanted to show my teacher but my school's computers are very bad.
grifft patch your tutorial are amazing i love them so much i made so many of them ranging from the rpg to this raycasting episode
for the wasd people, switch up down left right for wasd and use , ,
I Can't Believe How Good You Are At Scratch! Thanks For The Video Btw!