How to TEXTURE MAP Walls | Raycasting in Scratch E7

  Рет қаралды 540,513

griffpatch

griffpatch

Күн бұрын

Texture mapping lets us project textures onto the walls of our Raycast level. In this exciting episode, we will code a simple and fast texture mapper taking it's textures from a scanned costume so you can design your own, or use the textures I've provided in my asset project (see below).
That we got this far just blows my mind - I hope you are ready for some serious fun!
My tutorials are for all budding game & software developers using Code Blocks. Scratch On guys!
🚀 Boost Your Creativity with Griffpatch
The Griffpatch Academy will take you from "Gamer to Game Creator"
Learn more at 👉 griffpatch.academy 👈
😺 Scratch was developed by the Lifelong Kindergarten Group at the MIT Media Lab. See scratch.mit.edu
🐱 Raycaster Scanner & Assets - scratch.mit.edu/projects/6887...
🔥 Having Problems? Bug Fixes - • Quick Fixes for Raycas...
👀 Scanning Tutorial - • Ultra Fast Colour Imag...
🐱 Scratch Studio for this tutorial - scratch.mit.edu/studios/31603...
👀 Full Episode Playlist - • Crazy Fun Raycasting (...
👀 Quick and Fun Tutorials - • Quick and Fun Scratch ...
❤️ Scratch Addons - scratchaddons.com/
-------------Video Chapters-------------
0:00 Intro
0:52 Texture Mapping Explained
2:47 Raycasting E7 Assets - Backpack ‘em
4:50 Scanning Wall Textures
7:24 Implementing the Texture Mapping Grid
11:33 Texture Scaling
12:48 Level Color - A little tweak
13:45 Rendering Textures with Pen
19:22 Texture Brightness
21:59 Scaled Texture Sizes for Speed
26:27 Texture Warping
27:45 Alternative Textures
29:37 Multiple Textures in the same level?
31:44 Outro

Пікірлер: 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
@fefe177
@fefe177 2 жыл бұрын
@@lotofgame561 💀
@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.
@dotYT1396
@dotYT1396 2 жыл бұрын
Everytime I think something's just impossible in Scratch, you never fail to amaze me.
@prakashbhasakhetre9179
@prakashbhasakhetre9179 Жыл бұрын
Very True
@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 Жыл бұрын
wait up griffpatch teach us python
@kayalvilethiruvarulruban4928
@kayalvilethiruvarulruban4928 Жыл бұрын
@@coder100funny Why
@chieseledboockshelf
@chieseledboockshelf 3 ай бұрын
Replying 1y old comment
@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
@shamacoo1483
@shamacoo1483 2 жыл бұрын
Instead of checking just subscribe to him 😃
@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 Жыл бұрын
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.
@vaguedestruction
@vaguedestruction Жыл бұрын
This tutorial is literally perfect for the backrooms
@andrewman1855
@andrewman1855 Жыл бұрын
Thinkin the same thing
@Red_impostorYT
@Red_impostorYT Жыл бұрын
@Saul Gone the poolrooms?
@i_am_hash999
@i_am_hash999 Жыл бұрын
New idea 4 me
@Cxllin58
@Cxllin58 Жыл бұрын
Exactly what i was thinking
@fridayfunkgaming291offical
@fridayfunkgaming291offical Жыл бұрын
And the Windows 3D Maze screensaver
@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 9 ай бұрын
or u can make rooms :troll:
@Famouslounggaming
@Famouslounggaming 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
@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
@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!
@legoboy7107
@legoboy7107 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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.
@idogaming3532
@idogaming3532 Жыл бұрын
In Turbowarp sprites aren't fenced. SO you could just move the stage as one giant level.
@joeydafishy1713
@joeydafishy1713 8 ай бұрын
Very simple
@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 KZfaq 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
@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!
@devpz
@devpz Жыл бұрын
Just finished the series. I love it. Please add more!
@torpark9911
@torpark9911 2 жыл бұрын
Wow oh wow, this Raycaster just keeps getting better and better! This is my favorite series from you so far; I've learned so much! I know multiple people have already suggested it, but would you be able to make a video on looking up and down & going up/down slopes and stairs? Thanks either way! 😁
@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!
@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
@ChimFilms
@ChimFilms 2 жыл бұрын
This is honestly amazing. It opens up so many different opportunities for a ray caster. Wow!!
@orangemc750
@orangemc750 Жыл бұрын
thank you so much. i really love your vids. btw congrats for 200.000 subs!
@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
@nartuz5016
@nartuz5016 2 жыл бұрын
This is just incredible. Keep up the good work man!
@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 :)
@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!
@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
@pythonR132
@pythonR132 Жыл бұрын
I think wall and floor textures could be a great addition! It might be a bit tricky, though.
@rivercape982
@rivercape982 Жыл бұрын
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!
@trk.is.trippin
@trk.is.trippin 2 жыл бұрын
yay! i love those wall textures!
@arireallycool5245
@arireallycool5245 2 жыл бұрын
Very interesting solutions! Texture mapping floor and ceiling next ep perhaps?
@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!
@That_0ne_Dev
@That_0ne_Dev 2 жыл бұрын
This man is doing real 3D in scratch. He has ascend.
@lostforwar5619
@lostforwar5619 11 ай бұрын
it's not real 3d, it's still 2d, it just draws the walls
@zepox9075
@zepox9075 Ай бұрын
@@lostforwar5619 then what do you think 3d is 💀 walking around it in real life? common bro it is 3D
@user-wx6ms9rv2m
@user-wx6ms9rv2m 16 күн бұрын
@@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
@brothergodzilla
@brothergodzilla 2 жыл бұрын
I'm speechless! YOU ARE A REAL SCRATCH HERO!!
@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
@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'
@buckIin
@buckIin 2 жыл бұрын
This is so amazing! Thanks for making this video!
@griffpatch
@griffpatch 2 жыл бұрын
My pleasure
@JoshuaoGD
@JoshuaoGD Жыл бұрын
This was really fun :D thank you so much for this
@theattic0098
@theattic0098 2 жыл бұрын
This is awesome. It's crazy to see how far this series has come from just a simple raycaster. One thing that I have been wondering is how would we add things like stairs or other shapes to add depth, similar to your 3D Laser Tag game?
@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
@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!
@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#
@smth35
@smth35 Жыл бұрын
the perfect ending for this would be adding ceiling and floors with textures, and probably fog, if possible
@terrariaskillissue4492
@terrariaskillissue4492 Жыл бұрын
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
@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
@survroproductions200
@survroproductions200 Жыл бұрын
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.
@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!
@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
@nachotieso2905
@nachotieso2905 2 жыл бұрын
I already added them in my project but they quite dont work well lol
@averagecodegame
@averagecodegame Жыл бұрын
@@griffpatch Could you please keep making videos on this?
@pogmongoose6463
@pogmongoose6463 Жыл бұрын
@Милош Ђошић (Z)🇷🇺 Scratch + Doom = Scroom
@GroovyAka
@GroovyAka 2 жыл бұрын
Woah, this is actually next level
@thatguystar817
@thatguystar817 11 ай бұрын
the man did it good job man!
@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
@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!
@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
@oddlattle755
@oddlattle755 2 жыл бұрын
I love how he does this with drag and drop blocks.
@jjsanimations
@jjsanimations 2 жыл бұрын
fr lol
@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.
@Luigi3779
@Luigi3779 Жыл бұрын
ngl I find just *watching* these tutorials pretty relaxing for an unknown reason
@jay-tbl
@jay-tbl 2 жыл бұрын
dude this is actually insane
@trojanfrog
@trojanfrog 2 жыл бұрын
This is Amazing! so fun to create and follow! can you maybe try to add a minimap later on? Thank you anyways for being such an awesome content creator and by far my favorite! Have a good day!
@griffpatch
@griffpatch 2 жыл бұрын
Thank you!
@Roni_mcconi
@Roni_mcconi 2 жыл бұрын
How about animated floor and roof? Like it moves as you move that would be amazing 😀
@TetrisKid48
@TetrisKid48 2 жыл бұрын
This is huge! Crazy.
@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
@aeshaanferdous8416
@aeshaanferdous8416 Жыл бұрын
Wow! I cant wait for episode 8!
@-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.
@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
@CarlCraftGamesyt
@CarlCraftGamesyt 6 ай бұрын
I loved!
@Jet_08
@Jet_08 2 жыл бұрын
ive been playing this guys games on scratch an HOLY COW mans a legend!
@vaguedestruction
@vaguedestruction Жыл бұрын
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
@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
@evelynmisaki2428
@evelynmisaki2428 2 жыл бұрын
Damn, I remember your games from when I was a kid, they inspired me a lot to do game dev stuff proper. Thank you
@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.
@ultra_lbp
@ultra_lbp 2 жыл бұрын
If I'm not mistaken, technically using this, someone could make doom in scratch
@ChuckSploder
@ChuckSploder Жыл бұрын
unknown1guy2 is doing that
@grogus
@grogus 2 жыл бұрын
Second time asking: Add mouse look. and i tried changing the map last episode and the project broke, luckily i had backups! also i love your videos griffpatch!
@pro-code7746
@pro-code7746 2 жыл бұрын
TO ADD THE MOUSE , PUT IN THE PLAYER TICK BLOCK ON THE DOWN : set direction to (MOUSE X)
@parkour-propeterbutter
@parkour-propeterbutter Жыл бұрын
Perfect project, Griffpatch u are the best
@Savage.-_.Gamer1
@Savage.-_.Gamer1 Жыл бұрын
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.
@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
@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!
@andrewbrzezinski223
@andrewbrzezinski223 Жыл бұрын
Griffpatch is so good at coding he could probably code this on scratch Jr.
@jenniewatkins9302
@jenniewatkins9302 10 ай бұрын
impossible. you would need a pen extension.
@juliocesarcamilo5132
@juliocesarcamilo5132 12 күн бұрын
@@jenniewatkins9302 r/woooooosh
@apo11ocat
@apo11ocat 2 жыл бұрын
i keep rewatching this video because its so fascinating
@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?
@OrtonLongGaming
@OrtonLongGaming 2 жыл бұрын
Could we possibly raycast and texture map the floor too?
@griffpatch
@griffpatch 2 жыл бұрын
In theory - but I 'think' it would be laggy
@MOMKUNG999
@MOMKUNG999 2 жыл бұрын
@@griffpatch very much laggy
@MOMKUNG999
@MOMKUNG999 2 жыл бұрын
@@griffpatch then you would find a new way to make it less laggy
@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 Жыл бұрын
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.
@matjam911
@matjam911 2 жыл бұрын
Great video as always! If there is an Episode 8, I’d love to see Projectiles & Jumping in the future!
@tooney3457
@tooney3457 2 жыл бұрын
Can you please make a tutorial on making a tower defense game like btd 6 griffpatch? Your tutorials are simple and plus you would make it easy to follow along.
@Hyprst
@Hyprst 2 жыл бұрын
i tried making a tower defence game and i just dont think its possible in scratch with how clones work
@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.
@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 Жыл бұрын
Technically it's 2.5D
@rivercape982
@rivercape982 Жыл бұрын
For now...
@Cartoon64
@Cartoon64 Жыл бұрын
@@rivercape982 yeah lol
@stephs5064
@stephs5064 Жыл бұрын
I love this tutorial! I am using this along with Lemonoids to make a 3D Lemonoids game!
@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
@TchaiXD
@TchaiXD 2 жыл бұрын
backrooms reference?
@ElectricVeil.
@ElectricVeil. 10 ай бұрын
Griffpatch you are AMAZING!!!
@bbmubinkk7928
@bbmubinkk7928 Жыл бұрын
Thank you this whole series was very helpful and allowed me to create fully functional game 🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩
@ARandomCat554
@ARandomCat554 10 ай бұрын
I've went through this entire video and i cant figure out why my walls arent showing
@connor_awesome6482
@connor_awesome6482 Ай бұрын
I’m having the same issue
@yourbuddyxander
@yourbuddyxander Күн бұрын
Bro same, is it new scratch? Cause I did everything the exact same 😂
@yourbuddyxander
@yourbuddyxander Күн бұрын
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
@itzjustrandom5673
@itzjustrandom5673 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)
@kriperproyoutuber
@kriperproyoutuber Ай бұрын
Thanks for Tutorial, This is Helpuful.
@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!
@Kirby_Super
@Kirby_Super 2 жыл бұрын
Another Great Episode! I kind of already knew how this was gonna work but I didn't expect every texture to be in one list! Also kind of a weird question, But I managed to modify this project to also have a Camera Y Value and the ability to look up and down, and was wondering if it was Ok if I could post a tutorial to my channel?
@Kirby_Super
@Kirby_Super 2 жыл бұрын
Well even though I didnt get a response, I still uploaded the tutorial! kzfaq.info/get/bejne/pp2Zn9tm3rHdc3k.html
@iamkeiju6756
@iamkeiju6756 Жыл бұрын
Wow this is amazing! It looks like Doom!
@startFX
@startFX Жыл бұрын
I love this tutorial series. It would be even better if you added projectiles, like you said.
@hw2007
@hw2007 2 жыл бұрын
I hope the next episode is about texturing the roof & ceiling!
@andranikamrahyan3909
@andranikamrahyan3909 2 жыл бұрын
Ooo yeah, thank you very much griffpatch 👍
@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 Жыл бұрын
You can try the boids AI tutorial and put the code into the enemy sprite
@Martin-H15011
@Martin-H15011 6 ай бұрын
Thank you so much!
@rehankhalil8791
@rehankhalil8791 2 жыл бұрын
finally i can make some awesome game through your game episode an alternate of ue5 nanite feature great work your really awesome !!!!
@ThatCrownedKing
@ThatCrownedKing 2 жыл бұрын
Never thought this was possible on scratch!
@fournumberblocks8796
@fournumberblocks8796 Жыл бұрын
Thank you só much to thank i added you into my game 😃
@griffpatch
@griffpatch Жыл бұрын
Woohoo
Smart Sigma Kid #funny #sigma #comedy
00:25
CRAZY GREAPA
Рет қаралды 16 МЛН
МАМА И STANDOFF 2 😳 !FAKE GUN! #shorts
00:34
INNA SERG
Рет қаралды 4,7 МЛН
Khó thế mà cũng làm được || How did the police do that? #shorts
01:00
Animating a Walk Cycle in Silly Programs
15:50
CyanSandwich
Рет қаралды 172 М.
How I Made a 3D Platformer in 2D Game Engine
21:23
ggenije
Рет қаралды 442 М.
Can AI Code Minecraft? Watch ChatGPT Try
8:06
BadGameDev
Рет қаралды 1,2 МЛН
Your Questions Answered 🏆 Scratch 100k Unboxing!
17:05
griffpatch
Рет қаралды 86 М.
Actually, Maybe There's Only 1 Game of Tic-Tac-Toe
11:58
Marc Evanstein / music․py
Рет қаралды 1 МЛН
Much bigger simulation, AIs learn Phalanx
29:13
Pezzza's Work
Рет қаралды 2,7 МЛН
You NEED To Do these 5 Things Before Sharing your Scratch Game
5:55
Jackson Academy
Рет қаралды 321 М.
I Spent 2,000 Hours Using Scratch
13:59
ggenije
Рет қаралды 512 М.
I Spent 6 Years Making Games in Scratch
10:03
chipm0nk
Рет қаралды 297 М.