How to TEXTURE MAP Walls | Raycasting in Scratch E7

  Рет қаралды 574,440

griffpatch

griffpatch

Күн бұрын

Пікірлер: 2 200
@Notdecoded_
@Notdecoded_ 2 жыл бұрын
I think this just proves how dynamic Scratch can be. Not just a kid's coding site, but a whole new world!
@lotofgame561
@lotofgame561 2 жыл бұрын
I think there is no limit in scratch, but it's hard to solve things that seem like borders
@gallium-gonzollium
@gallium-gonzollium 2 жыл бұрын
“What we lose in resources, we make up for in community.” -Griffpatch
@futuremapper_
@futuremapper_ 2 жыл бұрын
@@lotofgame561 there is def a limit tho, can only go so far with Java script and blocks :)
@mloopy461
@mloopy461 2 жыл бұрын
your not wrong XD
@the_real_yummuy
@the_real_yummuy 2 жыл бұрын
@@lotofgame561 💀
@itsrainingnans2187
@itsrainingnans2187 2 жыл бұрын
i very rarely even use scratch anymore, i just find your videos entertaining. and its cool to see how people are really pushing scratch to its limits
@theahrcitect286
@theahrcitect286 2 жыл бұрын
Sake
@Arnikaaa
@Arnikaaa 2 жыл бұрын
Same
@vaguedestruction
@vaguedestruction 2 жыл бұрын
If this ratio gets to 100+ this guy has to use scratch more | \/
@clown_person_guy
@clown_person_guy Жыл бұрын
same
@ArethaN.A
@ArethaN.A Жыл бұрын
​@@vaguedestruction you are just wanna likes.
@tamnker8465
@tamnker8465 2 жыл бұрын
I didn't realize you did tutorials! When I was younger, I remember spending a long time playing your projects like scratcharia and paper minecraft. Now, I've kind of moved on from scratch to python (Plus a bit of java). Your creations were one of the things that got me into programming. Thank you.
@coder100funny
@coder100funny 2 жыл бұрын
wait up griffpatch teach us python
@kayalvilethiruvarulruban4928
@kayalvilethiruvarulruban4928 Жыл бұрын
@@coder100funny Why
@RADEET.OFFICIAL
@RADEET.OFFICIAL 9 ай бұрын
Replying 1y old comment
@theoriginaldrdust
@theoriginaldrdust 2 жыл бұрын
I like how with just this, we can make a whole 3d action game, a 3d moviemaker, a fun maze, etc, yet there is bound to be more episodes. This is awesome!
@MOMKUNG999
@MOMKUNG999 Жыл бұрын
i am waiting where griffpatch makes the stairs and real floor like in his laser tag game
@cristianospohr69
@cristianospohr69 Жыл бұрын
or u can make rooms :troll:
@legoboy7107
@legoboy7107 2 жыл бұрын
This is so cool! I do have some more ideas for more improvements, including one optimization: 1. The optimization idea is implementing draw distance. I noticed that wide open areas with far away walls cause some slowdown because the raycaster has to travel farther, even with the Episode 6 optimization, but those far away areas are basically pitch black. So there's no point in raycasting that far anyway let alone draw there, so I'm thinking having an adjustable limit to how far a ray travels, and then just not drawing any of the walls beyond that range, could save resources as that reduces the amount of raycasting done, and how much we have to draw with the pen. With some clever adjusting of the background image so that there's a taller black bar in the middle, given how dark far away walls are, this could be made so that it doesn't even become noticeable that far away walls aren't getting drawn or even detected. 2. I wonder if it's possible to allow for really large maps by merging this with a sidescrolling engine. Like, for starters, adjust the movement so that instead of the player moving and the level sprite remaining fixed, the level sprite moves instead while the player remains fixed. And then use a sidescrolling engine on the level sprite to allow for multiple screens of the level sprite that scroll together on the map, and since the player remains fixed and the level moves via the sidescrolling engine, this could potentially allow for theoretically infinite levels without having to make a ginormous level costume or tax performance. In fact, I believe this is exactly how the Doom engine worked, where the level moves instead while the player remains fixed, and different areas kinda get loaded as the player gets close to them.
@BabyJimbo
@BabyJimbo 2 жыл бұрын
I really like those ideas. I specially love the second one because in my own game I needed that. Furthermore, I thought to implement it with the side scrolling video of Griffpatch, but it was so hard because I also had to put horizontal scrolling at the same time. But I had an idea, I could make my map just a little bit closer, and smaller player movements. And I fixed it. It's a pity that I just made my map a little bit "bigger", for the player view. But I didn't implement that idea. For the next time, I'll try harder to make infinity maps :). Can you imagine a random generation of maps? With chests, items, bosses. Whoa, I'm getting exited. For the first idea, I like that, but you have to think that the background image high is fixed, and doesn't matter how far or closer it is, if the ray caster doesn't arrive at that range, you'll only see a fixed black, and that's strange. Also, it could have problems with the RES: Not all the players are able to play with a RES of 2 to 5, in fact they are forced to use a RES of 8 or more, so the background, won't change, and in could have a strange contrast. In fact, you can make that all the sky and floor have a little degraded from any colour to black, and the player won't notice. But the game would be very darker. So you'll must make bigger the darkness of the drawing level. That's a great idea, but can create a great ambient of a horror game, or something like that, so that the only problem that I see there. Anyway, they are very nice ideas, and if you ever implement them, let me know, because I'll take a look at them, and leave my like and favourite to your game.
@Notathreelettername
@Notathreelettername 2 жыл бұрын
Very cool idea! tho i somehow broke my 3d engine in this vid so i cant really do it not to mention my game now runs at 2fps ._.
@K1Siel
@K1Siel Жыл бұрын
For the first one idea, you can go to the "Pen" sprite, in the define "Draw Row" script, put all the pen extension blocks into an "if (distance < 150)" statement. After this upgrade, i have 20 FPS for RES set on 1 edit: If you want, you can change the "150" in the "if" statement into a variable, and do the same thing to "if (abs of(x - x position)) < 1" statement in the "Stamp Entity" custom block. so that works also for entities or collectibles.
@RationalFunction
@RationalFunction Жыл бұрын
In Turbowarp sprites aren't fenced. SO you could just move the stage as one giant level.
@joeydafishy1713
@joeydafishy1713 Жыл бұрын
Very simple
@silvertakana3932
@silvertakana3932 2 жыл бұрын
The next episode should be about sliding doors since it seemed like the right progression to this series. And honestly, most ray casters have doors.
@beckmcdonough7099
@beckmcdonough7099 2 жыл бұрын
If you do don’t we need a roof? I still agree but a roof would be good
@thunderbgamer118
@thunderbgamer118 2 жыл бұрын
@@beckmcdonough7099 no we dont need a roof mcdonough
@1080GBA
@1080GBA 2 жыл бұрын
you can make a moving level sprite
@l0f1_problems65
@l0f1_problems65 2 жыл бұрын
We can do portals too, if you cant do movable doors
@undefined06855
@undefined06855 2 жыл бұрын
@@l0f1_problems65 portals are sooooo resource intensive, because you need to render another camera, to render the image of the portal. So probably not possible, unless the "portals" are just openings in a wall, and not moveable or changeable.
@strawmanxd2364
@strawmanxd2364 2 жыл бұрын
This is the best series yet! Could you add a cloud server, sounds hard but would be another fantastic achievement.
@dratic9567
@dratic9567 2 жыл бұрын
that would be amazing
@bigdaddy6229
@bigdaddy6229 2 жыл бұрын
If you were to use the cloud game series and then use the entity displayer it's very possible you could do this but not everyone would be able to do this because you need the scratcher tag if I'm correct
@BESTGAMER12132
@BESTGAMER12132 2 жыл бұрын
But he already did
@bigdaddy6229
@bigdaddy6229 2 жыл бұрын
@@BESTGAMER12132 yes but he means to integrate it into this game
@bigdaddy6229
@bigdaddy6229 2 жыл бұрын
Hey, I managed to intergrate this the other day using the entity sprite and it works amazing
@OrtonLongGaming
@OrtonLongGaming 2 жыл бұрын
WOO HOO! Was constantly checking your channel waiting for this part, super excited to get this working!
@ReaganVLim
@ReaganVLim 2 жыл бұрын
The Same
@kenaiballmer5414
@kenaiballmer5414 2 жыл бұрын
same
@Shamacoo
@Shamacoo 2 жыл бұрын
Instead of checking just subscribe to him 😃
@whynotanyting
@whynotanyting 2 жыл бұрын
Holy crap! I remember following you on Scratch back in high school several years ago. I was eagerly awaiting for each new update to your Gauntlet remake to try in the mornings before school started. This is such a pleasant surprise to find you making videos! You inspired me to try and make video games myself!
@jasonwhisnant5457
@jasonwhisnant5457 Жыл бұрын
THIS IS SOOO COOL!!!! I HAVE NEVER SEEN A 3D SCRATCH GAME THAT CAN RUN AT THESE SPEEDS AND HAVE TEXTURES!!!!!! YOU ARE A GOD
@DanielHCassidy
@DanielHCassidy 2 жыл бұрын
Just wow. I'm only up to ep 2 regards coding but I love watching each vid as it comes out.
@griffpatch
@griffpatch 2 жыл бұрын
Awesome :) - I have to say, I'm surprised we got this far lol... episode 7.
@DanielHCassidy
@DanielHCassidy 2 жыл бұрын
@@griffpatch I know I can't wait to see what this is like when it reaches ep 20 like the tile scroller. But I'm looking forward to what you do with your other projects. Like lemonoids. I think you said ep 4 was coming. I have given my ship shields and armour and missile's. But I haven't explored yet how to make the lemons drop collectables like extra missile's, shield energy, rate of fire energy or armour repair kinda things. I'm sure they are doable but I'm also sure you'd have a much more elegant solution.
@Tarou9000
@Tarou9000 2 жыл бұрын
@@DanielHCassidy bruh, this is the same day of the release and KZbin tells me that this cmments was 1 days ago
@ianyourgod
@ianyourgod 2 жыл бұрын
@@Tarou9000 I think he releases them early for his members
@grogus
@grogus 2 жыл бұрын
@@ianyourgod he does
@Famouslounge
@Famouslounge 2 жыл бұрын
This is just what I needed to finish my game thank you
@ItsNat21_
@ItsNat21_ 2 жыл бұрын
Scratch's first multiplayer fps?
@SSukram_
@SSukram_ 2 жыл бұрын
@@ItsNat21_ One already exists, and griffpatch actually made it!
@Jroobelucios
@Jroobelucios 2 жыл бұрын
@@SSukram_ multiplayer? Lmao
@bulldozercowboy6400
@bulldozercowboy6400 2 жыл бұрын
@@Jroobelucios do you have the big dumb?
@Jroobelucios
@Jroobelucios 2 жыл бұрын
@@bulldozercowboy6400 Jfc everywhere I turn on this website is another jerk. I’m seriously thinking about quitting and this does not help. Istg one more nasty pos and I’m outta here. Good day to you
@izaanhafid
@izaanhafid 2 жыл бұрын
This is awesome! :D I could've never thought this one out lol, and I have to say, you're a really hard working youtuber! Most people (even me) take 2 weeks to post a 10 minute video, but you are posting 15-30 minute videos every week! I have to respect that lol
@griffpatch
@griffpatch 2 жыл бұрын
Thank you so much! - Sometimes it takes a little too much of my time lol. I need to find a way to make shorter tutorials hehe
@izaanhafid
@izaanhafid 2 жыл бұрын
@@griffpatch lol yes i completely agree
@UltronZX
@UltronZX 2 жыл бұрын
@@izaanhafid lol
@vaguedestruction
@vaguedestruction 2 жыл бұрын
This tutorial is literally perfect for the backrooms
@MotivationalMoto445
@MotivationalMoto445 Жыл бұрын
Thinkin the same thing
@Red_impostorYT
@Red_impostorYT Жыл бұрын
@Saul Gone the poolrooms?
@i_am_hash999
@i_am_hash999 Жыл бұрын
New idea 4 me
@dekanzeller4723
@dekanzeller4723 Жыл бұрын
Or Wolfenstein 3d
@Cxllin58
@Cxllin58 Жыл бұрын
Exactly what i was thinking
@survroproductions200
@survroproductions200 2 жыл бұрын
to think this was the same scratch i used to make simple point-and-click games this is incredible, You made your own 3-D game engine.
@Amalya_DSG
@Amalya_DSG 2 жыл бұрын
This is truly amazing! It's going to be interesting to see what else we will do with this. Anyways, I'm going to implement this into my project now. Scratch on!
@dazcarrr
@dazcarrr 2 жыл бұрын
it's as if you can bend scratch to your will, it's incredible what can be done is such a seemingly simple software
@OrtonLongGaming
@OrtonLongGaming 2 жыл бұрын
Question (maybe for an episode 8?): How could I add animated entities?
@griffpatch
@griffpatch 2 жыл бұрын
Episode 8 perhaps yes :D
@abdurrazzaque8435
@abdurrazzaque8435 2 жыл бұрын
@@griffpatch bruh
@yeit
@yeit 2 жыл бұрын
Can't you just add more costumes then add a repeating then put the number you want and add next costume block inside it?
@yeit
@yeit 2 жыл бұрын
@Stonks Griifpatch make. An. Episode. About. How. To. Add. Frames. In. Wall. Texture. N. o. w
@learntocode4020
@learntocode4020 2 жыл бұрын
Where is animating walls
@spoopyissad
@spoopyissad 2 жыл бұрын
I came back to this series when I saw I needed raycasting and am thoroughly impressed griffpatch could come up with solutions to these seemingly impossible roadblocks so, good job!
@pythonR132
@pythonR132 2 жыл бұрын
I think wall and floor textures could be a great addition! It might be a bit tricky, though.
@rivercape982
@rivercape982 2 жыл бұрын
You mean ceiling?
@saltedmutton7269
@saltedmutton7269 Жыл бұрын
Floor textures could be a fairly simple addition if it's the same texture - just edit the backdrop!
@pythonR132
@pythonR132 Жыл бұрын
@@saltedmutton7269 No I mean like scrolling and rotating with the walls and stuff
@JanDuckworth
@JanDuckworth Жыл бұрын
@@saltedmutton7269 It wouldn't keep te same feeling of movement because it wouldnt scroll/rotate though, so it would take a lot of work!
@bulldozercowboy6400
@bulldozercowboy6400 2 жыл бұрын
Hey griffpatch, huge fan! Just wondering if we're ever gonna add projectiles and animated enemies like Doom or Wolfenstein?
@griffpatch
@griffpatch 2 жыл бұрын
Gosh, there's always so many more things to cover right lol
@AngleInTheShape
@AngleInTheShape 2 жыл бұрын
@@griffpatch You Put Nano In The Thumbnail
@xx_nachoso
@xx_nachoso 2 жыл бұрын
I already added them in my project but they quite dont work well lol
@averagecodegame
@averagecodegame 2 жыл бұрын
@@griffpatch Could you please keep making videos on this?
@pogmongoose6463
@pogmongoose6463 2 жыл бұрын
@Милош Ђошић (Z)🇷🇺 Scratch + Doom = Scroom
@bassboosted6037
@bassboosted6037 2 жыл бұрын
These videos keep getting better and better. Keep up the hard work! Can't wait to see what you have for us next!
@surlo69
@surlo69 2 жыл бұрын
this... is... awesome! this again reminds us that the making of a good game lies in the hands of the dev and not the software. Although the concepts are pretty hard to understand and its very easy to get lost even with griffpatchs simplest and most straight foward explaination, watching your raycaster comes to life is just such an rewarding and satisfying feeling. this is definately worth spending my weekend on. and thank you griffpatch for everything you've done to inspire more people as you have on me :)
@santiagoaguilera7289
@santiagoaguilera7289 2 жыл бұрын
There are soooo many things I would like them to be added! Like Ceiling and floor textures, animated sprites, Wall heights, jumping crawling, etc!! I hope you can teach us
@arireallycool5245
@arireallycool5245 2 жыл бұрын
Very interesting solutions! Texture mapping floor and ceiling next ep perhaps?
@yeetyeet5087
@yeetyeet5087 2 жыл бұрын
When Griffpatch uploads, it's a good day
@izaanhafid
@izaanhafid 2 жыл бұрын
agreed
@izaanhafid
@izaanhafid 2 жыл бұрын
@Jaiden for me i had half class so i came back at 11 o clock LOL
@izaanhafid
@izaanhafid 2 жыл бұрын
@Jaiden it was amazing
@nartuz5016
@nartuz5016 2 жыл бұрын
This is just incredible. Keep up the good work man!
@That_0ne_Dev
@That_0ne_Dev 2 жыл бұрын
This man is doing real 3D in scratch. He has ascend.
@lostforwar5619
@lostforwar5619 Жыл бұрын
it's not real 3d, it's still 2d, it just draws the walls
@zepox9075
@zepox9075 7 ай бұрын
@@lostforwar5619 then what do you think 3d is 💀 walking around it in real life? common bro it is 3D
@nopeno-s5r
@nopeno-s5r 6 ай бұрын
@@zepox9075 No this is not 3d, this is a 2d game that draws walls in a way to give the illusion of 3d. People have made actual 3d games in scratch, but the engine is very much not designed for it, and those games have made many compromises
@archiebertram2448
@archiebertram2448 Жыл бұрын
At 6:35 how does he manage to make a block by clicking the screen? If it uses an addon, what addon and *how do I do it?*
@drevoksi
@drevoksi 2 жыл бұрын
Although it feels like some parts may have been done a little simplier, this is such a great tutorial with some really interesting ideas!
@AustriaColorised
@AustriaColorised 2 жыл бұрын
i've been keeping an eye on the ray caster playlist for days waiting for this to come out, it is really exciting, i think this is what we all needed, thank you. but i still have to mention some things i would like to see in the future of this series, here are a few: -maybe getting the roof/floor to move with the walls -smarter AI for the enemies -perhaps the ability to look up and down -perhaps the ability to jump and /or sneak -perhaps the ability to layer multiple maps on top of each other as to mimic full 3D -even having small objects that can move freely in all directions without appearing as walls
@MialaYT
@MialaYT 2 жыл бұрын
And cloud multiplayer 😁 It is very good ideas!
@caseyyeow1649
@caseyyeow1649 2 жыл бұрын
How many map sprites we need
@srevia
@srevia 2 жыл бұрын
the idea of layer multiple maps on top of each other could be very laggy cuz it would probably like have 3 fps
@shadow_1363
@shadow_1363 2 жыл бұрын
griffpatch can explain anything on his tutorial and unlike other tutorials, I understand how it works! Amazing explanation at the start btw
@griffpatch
@griffpatch 2 жыл бұрын
That's very kind - I was a bit unsure I did such a great job there as there is always so much more detail to cram in... but I only have so much time to work on it :) - So thanks!
@devpz
@devpz 2 жыл бұрын
Just finished the series. I love it. Please add more!
@Jitendrasingh-gi4se
@Jitendrasingh-gi4se 2 жыл бұрын
YOU ARE LEGENDARY SCRATCHER!!! I am a big fan.. thanks to do such a big coding also for making all this tutorials for us I have started coding this video and my project will be ready soon . #awesome#
@ganeshs7642
@ganeshs7642 2 жыл бұрын
200th like and a really amazing tutorial overall! it's a really good episode and the most wanted and the most IMPORTANT episode ever! that you have got us to see and build the program ourselves 'nice job griffpatch'
@silvertakana3932
@silvertakana3932 2 жыл бұрын
Could you show us how to make varying level heights like in your first person shooter? And maybe we can use the same technique to render walls and ceilings.
@aintNexus
@aintNexus 2 жыл бұрын
I know how to do that, i made multiple engines with different heights, but we would have to change many things... The rays will have to continue until they touch the tallest wall type... But it's kind of easy!
@CyanStarr
@CyanStarr Жыл бұрын
ngl I find just *watching* these tutorials pretty relaxing for an unknown reason
@goldenredstone04
@goldenredstone04 2 жыл бұрын
Awesome video! What's next? Different height walls might be cool to implement, before moving on to stairs, a second level and vertical movement.
@smth35
@smth35 2 жыл бұрын
the perfect ending for this would be adding ceiling and floors with textures, and probably fog, if possible
@terraria8767
@terraria8767 Жыл бұрын
maybe fog could be added by making the pen color become more white, and more transparent dependent on distance. that could also make it blend with the backdrop more
@garfieldandfriends7981
@garfieldandfriends7981 2 жыл бұрын
Amazing like always! I wonder if it would be possible to have a texture for floors and ceilings too instead of just having a basic background for them.
@impossiblestudios77
@impossiblestudios77 2 жыл бұрын
What if you added a floor and ceiling? I can kinda see how it could work. Something to do with the height variable
@MOMKUNG999
@MOMKUNG999 2 жыл бұрын
or with the y variable
@EpicVideos2
@EpicVideos2 2 жыл бұрын
I didn't realize you could search for blocks just with the first two letters of it! That's going to save me lots of time, thanks Griffpatch!
@archiebertram2448
@archiebertram2448 Жыл бұрын
how do you search for blocks?
@EpicVideos2
@EpicVideos2 Жыл бұрын
​@@archiebertram2448 use scratch addons, then use middle mouse button click. or left click with shift held down
@brothergodzilla
@brothergodzilla 2 жыл бұрын
I'm speechless! YOU ARE A REAL SCRATCH HERO!!
@romanpackham8471
@romanpackham8471 2 жыл бұрын
my 3 questions: are floor and ceiling textures possible? is it possible to make more uniquely shaped walls instead of just verticle blocks? and what about vertical movement?
@Roni_mcconi
@Roni_mcconi 2 жыл бұрын
How about animated floor and roof? Like it moves as you move that would be amazing 😀
@shoebill-stuff
@shoebill-stuff 2 жыл бұрын
give it 15 years or so and we'll have full ps4 games on scratch
@noot_noot843
@noot_noot843 2 жыл бұрын
I love this episode! I was waiting a long time for this :D
@griffpatch
@griffpatch 2 жыл бұрын
I'm glad! Took a lot of effort to make so I really appreciate the feedback thanks
@MialaYT
@MialaYT 2 жыл бұрын
Me too!
@jjsanimations
@jjsanimations 2 жыл бұрын
You're really flexing that membership :D lol wish I could be a member because I want to be able to spam scrathcats in the comments lol
@bonanafanafoindy366
@bonanafanafoindy366 2 жыл бұрын
Who knew that scratch could do so much! I remember when I thought NES games in scratch was pushing it to the limits! Maybe you could do something for ceiling and ground tiles so that we can maybe go outside or have the floors change textures? Continue the great work!
@paperbagman9012
@paperbagman9012 2 жыл бұрын
You could make a sprite that if the player sprite touches it then it would change the level costume, the background, costume and whatever else you want to go along with that.
@mrequable
@mrequable 2 жыл бұрын
First off, this is an amazing tutorial! Now really all I’m curious about are enemies and wether it’s possible to make them more fun to play against. For example, if enemies will only chance you within a certain distance, or maybe even enemy projectiles would be awesome!
@rivercape982
@rivercape982 2 жыл бұрын
You can try the boids AI tutorial and put the code into the enemy sprite
@kaogaroo
@kaogaroo 2 жыл бұрын
This is amazing! I love it! A suggestion. I really would like to create a 3d platformer like some other people did. Is this possible with sprite based raycasting? If so, I would love an episode about it!
@aintNexus
@aintNexus 2 жыл бұрын
Yes! It's completely possible!
@Mari0Kid1234
@Mari0Kid1234 2 жыл бұрын
@@aintNexus I tried it wasn’t _as_ good but it was worth trying
@aintNexus
@aintNexus 2 жыл бұрын
@@Mari0Kid1234 I will do that soon.
@vladyslavkryvoruchko
@vladyslavkryvoruchko 2 жыл бұрын
I not recommend use ray cast to make 3D platformers because even it looks like 3d, remember that its still 2D map, and there is no way to set Z coordinate. Better use polygons, since they computing a lot faster, and you can do anything with them.
@aintNexus
@aintNexus 2 жыл бұрын
@@vladyslavkryvoruchkoWith RayCasting everything it's possible
@vaguedestruction
@vaguedestruction 2 жыл бұрын
I couldn't get the extra entity to disappear for some reason so I had to set up code to add spawn protection so if your x pos/y pos is -10 to 10 you can't get damaged which is actually a feature worth keeping even if I fix the extra entity. If anyone wants the simple code: 1. Make 2 new variables called "at spawn" and "temp" or "num" (whichever you prefer), both for this sprite only 2. Make a new block called "Check if at spawn" and set it to run without screen refresh 3. Add this code in the block: define Check if at spawn: set [temp] to (-11) repeat (21) | change [temp] by (1) | if then | | set [at spawn] to (1) | | stop [this script] | else | | set [at spawn] to (0) 4. Change the code inside of if to: Check if at spawn if | change [Health] by (-1) | if then | | broadcast (Game Over) 5. Now you're done! Thanks for using my code that I shared for 0 reason! :)
@nex0__772
@nex0__772 Жыл бұрын
bro tysm i was fr looking for someone who could help me with that
@Geoose49
@Geoose49 2 жыл бұрын
I think in the next episode you should make textures for floor and ceiling (if its possible)
@phinblue4989
@phinblue4989 2 жыл бұрын
It is possible
@willchangehandlelater
@willchangehandlelater 2 жыл бұрын
the fact that we went from walking and sending a ray from a player in a 2d world to running around, trying to survive and collecting stars in a 3d world with textures on the walls just blows my mind
@ChimFilms
@ChimFilms 2 жыл бұрын
This is honestly amazing. It opens up so many different opportunities for a ray caster. Wow!!
@-Clickertale_2-
@-Clickertale_2- 2 жыл бұрын
This is such an amazing tutorial and I think I can add this to my infinite level generator. Thank you for making these easy to follow tutorials! :D (Also is it possible to do different textures for the floor and ceiling that rotates with the player? It will be incredible if you could make a tutorial on that! :D ).
@jmcortade8161
@jmcortade8161 2 жыл бұрын
I would like that too, not gonna lie
@-Clickertale_2-
@-Clickertale_2- 2 жыл бұрын
@@jmcortade8161I would love to have different non static textures for the floor and ceiling! :D It can make this raycaster even better! :D
@jmcortade8161
@jmcortade8161 2 жыл бұрын
@@-Clickertale_2- Yes, but I also wonder if it is possible to make a multi-layer raycaster, like doom for example
@-Clickertale_2-
@-Clickertale_2- 2 жыл бұрын
@@jmcortade8161 That would be awesome! :D
@jmcortade8161
@jmcortade8161 2 жыл бұрын
@@-Clickertale_2- you know, having multiple floors, to make more complex buildings, and add stairs and elevators... It would be like a dream.
@yeetyeet5087
@yeetyeet5087 2 жыл бұрын
Just an idea: What if we make textured floors??? (edit): We can apply the same concept for the walls, except we would need to calculate the proporions of each pixel of the texture and then draw it before we draw the walls. Don't know if that would slowdown the frames tho
@rickluk-gaming301
@rickluk-gaming301 2 жыл бұрын
U can just change the background
@yeetyeet5087
@yeetyeet5087 2 жыл бұрын
@@rickluk-gaming301 true, but i mean the floors that move when you move
@rickluk-gaming301
@rickluk-gaming301 2 жыл бұрын
Oh ok
@jjsanimations
@jjsanimations 2 жыл бұрын
@JM Coulon say what Lol
@rickluk-gaming301
@rickluk-gaming301 2 жыл бұрын
@JM Coulon POV : You are the world greatest mathematician explaining the reality of quantum physics
@AbdlFathir
@AbdlFathir 2 жыл бұрын
im not even making my own game but the videos are just so good not to watch, Thank you griffpatch for making this video.😄
@griffpatch
@griffpatch 2 жыл бұрын
Glad you like them!
@VibrantEyesOfficial
@VibrantEyesOfficial 2 жыл бұрын
literally me, i lost motivation to keep updating after episode 3 but, ive watched every video since that just without actually coding.
@SomeRando5370
@SomeRando5370 Жыл бұрын
@@griffpatch how do you implement custom textures? I've tried adding them on to the textures costume, but I can't figure out how it works. Each time it just shows black instead of my 32x32 texture.
@theoriginaldrdust
@theoriginaldrdust 2 жыл бұрын
Haha, another comment. But I just remembered something cool from DOOM called demos, where it records everything that happens in your game in a way that lets you play it back in the game rather than a big bulky video file. What if we record to a list (x, y, dir) and do a similar thing? Export the list and your friends can import it and see you speedrun the star catching game or you can make a movie with the engine for them to watch. Another cool thing you can do with this.
@Cartoon64
@Cartoon64 2 жыл бұрын
The fact this dude can make 3D in a 2D code interpreter, is awesome. And out of simple block code too!
@rivercape982
@rivercape982 2 жыл бұрын
Technically it's 2.5D
@rivercape982
@rivercape982 2 жыл бұрын
For now...
@Cartoon64
@Cartoon64 2 жыл бұрын
@@rivercape982 yeah lol
@ultra_lbp
@ultra_lbp 2 жыл бұрын
If I'm not mistaken, technically using this, someone could make doom in scratch
@ChuckSploder
@ChuckSploder 2 жыл бұрын
unknown1guy2 is doing that
@SaiponathGames
@SaiponathGames 2 жыл бұрын
Wow! This is wonderful! I'd recommend color coding the level so that you can see different textures at different positions.
@griffpatch
@griffpatch 2 жыл бұрын
Yes indeed!
@TchaiXD
@TchaiXD 2 жыл бұрын
backrooms reference?
@Pixel_bendy-alt
@Pixel_bendy-alt 2 ай бұрын
Lol
@CaberMan1
@CaberMan1 Жыл бұрын
Bro lets goooooo! its the first time he said skip in the raycasting game series woo WOOOOOOOO! 24:45
@ARandomCat554
@ARandomCat554 Жыл бұрын
I've went through this entire video and i cant figure out why my walls arent showing
@connor_awesome6482
@connor_awesome6482 7 ай бұрын
I’m having the same issue
@xander_rahh
@xander_rahh 5 ай бұрын
Bro same, is it new scratch? Cause I did everything the exact same 😂
@xander_rahh
@xander_rahh 5 ай бұрын
Hold on in pen, under define draw row, my set type to item of was 1 instead of row#, check yours to see if that's your problem aswell
@yes-ls1rf
@yes-ls1rf Жыл бұрын
we can actually make backrooms in scratch now lmao
@randomtech94
@randomtech94 2 жыл бұрын
A list of things that can be added in upcoming episodes: 1- reflections 2- textured roof and floor 3- 3d modeled things (example: a table) 4- jumping and crouching 5- things at diferent heights (a stair or multiple floors) How i can add transparent textures to my walls? I am triying to implement enemy healtbars and i am going to send the game to the studio (minecraft textures included ☺)
@balala7567
@balala7567 2 жыл бұрын
And, this could potentially be turned into a fully fledged 3D engine with the following additions: -Level elements on the Z axis -Scanlines moving in the Z axis -Moving from level sprites to level lists (would require scripting wizardry, likely) -Adding a Z axis to the level -3d collision -3d block grid -Textures for specific types of blocks And with that, you could very well create Minecraft. Or, at least an alpha version of it. Don't think you can run 1.18.2 with this (besides, the amount of scripts you would need to make for that is monstrous)
@Kinguardia
@Kinguardia 2 жыл бұрын
hey griff!! I actually have some more aesthetically pleasing and quite cool things to show you!! lets say in the future we have some options that we want to set out so that players can customize their experience. I have the PERFECT thing for a pop up options menu!! first, hide all the variables. we dont want them to be seen as soon as we start the game. be sure to turn all the options you want to implement (brightness, pen size, etc..) into sliders and set their ranges to your liking. Second, make a variable named "options" for all sprites. then use this code (all code is used in the player sprite) (WHEN O KEY PRESSED) {if AND } set (options??) to (on) show variable (????) show variable (???) show variable(???) ELSE {if AND } set (options??) to (off) hide variable (???) hide variable (???) hide variable (??) this will allow you to just press o (for options) and BAM, you have your options!! the same can be used for the map, and only using it when needed, like in doom!! you will just need to broadcast the messages (map on) and (map off) to the map, and if map is on, set the ghost effect for the map and player to 0, and if its off, set the ghost effect to 100!! For me, I used Q to turn the map on and off because its so convenient. I hope that is useful!!
@galacticgaming029
@galacticgaming029 2 жыл бұрын
Hang on.If this is possible and your 3d laser tag is binary space partitioning,we can combine our raycaster project here with the binary space partition project to get a fully fledged out retro first person shooter like doom or duke nukem 3d.Griffpatch if you can make a tutorial series for your 3d laser tag then you might just recreate the 90's on scratch.Its just a shame that scratch has a webgl bug that stops me sharing the projects I make.
@Iaskedlilbro
@Iaskedlilbro 3 ай бұрын
What addons do you use to simply search blocks?
@mainlymason8729
@mainlymason8729 Жыл бұрын
just so you know, with the scratch addons, when you press cntrl space it comes up with a block searcher, and you can not only type: * to get a [() * ()] script, but you can also type: 1 * 1, or, if touching mouse pointer then, to get those blocks to help with coding faster
@apo11ocat
@apo11ocat 2 жыл бұрын
i keep rewatching this video because its so fascinating
@mballextra
@mballextra 2 жыл бұрын
It would be interesting to see 3D sound getting implemented. Imagine using the 'pan' and 'volume' sound blocks, and determining the values if there's a wall in the way.
@redstrider6814
@redstrider6814 2 жыл бұрын
Bit of a late reply but the way I did it just using another raycast from the sound source to the listener increasing a variable if the raycast is in a wall and then setting the volume to the distance to the player minus that value. For the pan you can simply set it to the sound sources X minus the listeners X. And if you want to go the extra mile and replicate the doppler effect you can set a "oldDist" variable to the dist variable, saving the sources distance to the ear as a dist variable, and setting the pitch to dist - oldDist!
@skyosteen69420
@skyosteen69420 2 жыл бұрын
Umm... So I'm having a problem with changing some of the textures in the scanner, I can change them in the sprite but they don't change in game, even when adding a new one I just get greeted with a black wall instead of a textured one
@bbmubinkk7928
@bbmubinkk7928 2 жыл бұрын
Thank you this whole series was very helpful and allowed me to create fully functional game 🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩
@ThatOneIndustrialist
@ThatOneIndustrialist 2 жыл бұрын
2 things I eventually want if possible are: -Adding a menu to the game - Actually dying when losing all health.
@uxw05
@uxw05 10 ай бұрын
9:11 I originally noticed my character just being duplicated so many times then I realized that it was expected XD
@startFX
@startFX 2 жыл бұрын
I love this tutorial series. It would be even better if you added projectiles, like you said.
@LonelyEmpiror
@LonelyEmpiror 2 жыл бұрын
You are crazy. It's simpler to code a raycaster in asm than in scratch IMHO.
@GroovyAka
@GroovyAka 2 жыл бұрын
Woah, this is actually next level
@stephs5064
@stephs5064 2 жыл бұрын
I love this tutorial! I am using this along with Lemonoids to make a 3D Lemonoids game!
@Savage.-_.Gamer1
@Savage.-_.Gamer1 2 жыл бұрын
Great videos! I have now learnt the things that Scratch can do. I only figured out that 3D projects can be done on the platform through the 3D Block with Shadow project. It seemed crazy to me at the time, but I love how versatile Scratch is as a software.
@heyzbeauz
@heyzbeauz 2 жыл бұрын
wow! I haven't watched one of your videos since the original scrolling platformer engine video series. you really seem excited to make these videos, thats great! 10/10 video!
@survroproductions200
@survroproductions200 Жыл бұрын
I Started to remember the DooM series, they had a small "Cheat" for illusions such as Ramps, Different Heights and other objects. it is very interesting!
@rileylecaptain113
@rileylecaptain113 2 жыл бұрын
thanks this helps me make my 90's styled game look better.
@theminerboss64
@theminerboss64 5 ай бұрын
Is it possible to add even more textures at once?
@alexjbrenchleymusic
@alexjbrenchleymusic 2 жыл бұрын
I really enjoyed this tutorial. Could you possibly do a tutorial on 3D terrains in Scratch?
@s1rk1ng25
@s1rk1ng25 2 жыл бұрын
i just found out an insane combination, on the row 0 column 3 default wall texture, if you set the 2nd level texture to 43 it has the same texture on the floor but the top of the wall is silver
@TheChezRat
@TheChezRat Жыл бұрын
Griffpatch is so good at coding he could probably code this on scratch Jr.
@jenniewatkins9302
@jenniewatkins9302 Жыл бұрын
impossible. you would need a pen extension.
@juliocesarcamilo5132
@juliocesarcamilo5132 6 ай бұрын
@@jenniewatkins9302 r/woooooosh
@orangemc750
@orangemc750 2 жыл бұрын
thank you so much. i really love your vids. btw congrats for 200.000 subs!
@trk.is.trippin
@trk.is.trippin 2 жыл бұрын
yay! i love those wall textures!
@iliyastefanov312
@iliyastefanov312 2 жыл бұрын
I have a problem where the walls look saturated and yellowy and purple, with everything looking darker instead of this 19:07 . The textures are mapped, but the colors are wrong. Does anyone know how to fix this problem?
@griffpatch
@griffpatch 2 жыл бұрын
Did you use the right set for block?
@iliyastefanov312
@iliyastefanov312 2 жыл бұрын
@@griffpatch I triple checked everything and it still wouldn’t work. It was working all fine until I added the actual texture map code
@iliyastefanov312
@iliyastefanov312 2 жыл бұрын
@@griffpatch I found out why it wont work, and I fixed it! It turns out I didnt let the scanner finish after I clicked the "Begin Scan" block, and then clicked the flag after. Just had to wait. :)
@jay-tbl
@jay-tbl 2 жыл бұрын
dude this is actually insane
@DomiDave
@DomiDave 2 жыл бұрын
I wouldn’t be surprised if someone made doom with this
@e-playgroundz7102
@e-playgroundz7102 2 жыл бұрын
this is sooooo cool, i'm in a ickk scratch race and this just gave my a animatio;n a idea!
@DDestroyer_
@DDestroyer_ 17 күн бұрын
I'm having an issue where at RESolutions 1 or 3, there's a single pixel to the left that you can see through. Any fix for it?
@TheCoffinMan
@TheCoffinMan Жыл бұрын
I have been trying to make my own game using this but my custom designs don't seem to work, do you think you could make a bug fixing video on this even though the series has ended a while ago?
@Diamondsigmaspaceb
@Diamondsigmaspaceb Жыл бұрын
Finally, another thing we can add to the “it can run doom list”
@WIP---P-O-L-T-E-R-G-E-I-S-T
@WIP---P-O-L-T-E-R-G-E-I-S-T 11 ай бұрын
Do you have to follow every other episode in order for this to work because I’m currently on part 3
@justsomedude.-.68
@justsomedude.-.68 Жыл бұрын
Griffpatch deserves more subs, maybe like 2M
@Bez_truopa
@Bez_truopa 2 жыл бұрын
Программисты на С++: Я не могу сделать 3Д рейкастинк. Программист на Scratch: ни слова больше
Ultra Fast Colour Image Scanner | Scratch How-to Tutorial
46:59
griffpatch
Рет қаралды 510 М.
Sprites Behind Walls (Depth Sorting) | E4. Crazy Fun Raycasting
31:56
ULTRA FAST Raycasting in Scratch - Unmissable E6 Update
19:44
griffpatch
Рет қаралды 279 М.
Sprites in a 3D World | E3. Crazy Fun Raycasting
25:53
griffpatch
Рет қаралды 802 М.
Making a Game About Weak Points
21:27
Emis
Рет қаралды 634 М.
"EPIC 3D JUMPING GAME" in Scratch? - Raycaster Tutorial E10
18:50
Code a TEXT ENGINE | Awesome "How to" Scratch Tutorial
39:45
griffpatch
Рет қаралды 734 М.
I Tried Making a Game Better Than ChatGPT
15:25
Rye
Рет қаралды 2,3 МЛН