How to TEXTURE MAP Walls | Raycasting in Scratch E7

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
    @silvertakana39322 жыл бұрын

    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
    @dotYT13962 жыл бұрын

    Everytime I think something's just impossible in Scratch, you never fail to amaze me.

  • @prakashbhasakhetre9179

    @prakashbhasakhetre9179

    Жыл бұрын

    Very True

  • @tamnker8465
    @tamnker84652 жыл бұрын

    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

  • @itsrainingnans2187
    @itsrainingnans21872 жыл бұрын

    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

    Жыл бұрын

    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.

  • @DanielHCassidy
    @DanielHCassidy2 жыл бұрын

    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 KZread 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

  • @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

  • @dekanzeller4723

    @dekanzeller4723

    Жыл бұрын

    Or Wolfenstein 3d

  • @Cxllin58

    @Cxllin58

    Жыл бұрын

    Exactly what i was thinking

  • @whynotanyting
    @whynotanyting2 жыл бұрын

    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!

  • @OrtonLongGaming
    @OrtonLongGaming2 жыл бұрын

    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 😃

  • @Famouslounggaming
    @Famouslounggaming2 жыл бұрын

    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

  • @theoriginaldrdust
    @theoriginaldrdust2 жыл бұрын

    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

    8 ай бұрын

    or u can make rooms :troll:

  • @spoopyissad
    @spoopyissad2 жыл бұрын

    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!

  • @strawmanxd2364
    @strawmanxd23642 жыл бұрын

    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

  • @bassboosted6037
    @bassboosted60372 жыл бұрын

    These videos keep getting better and better. Keep up the hard work! Can't wait to see what you have for us next!

  • @ChimFilms
    @ChimFilms2 жыл бұрын

    This is honestly amazing. It opens up so many different opportunities for a ray caster. Wow!!

  • @torpark9911
    @torpark99112 жыл бұрын

    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! 😁

  • @dazcarrr
    @dazcarrr2 жыл бұрын

    it's as if you can bend scratch to your will, it's incredible what can be done is such a seemingly simple software

  • @Amalya_DSG
    @Amalya_DSG2 жыл бұрын

    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!

  • @surlo69
    @surlo692 жыл бұрын

    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 :)

  • @devpz
    @devpz Жыл бұрын

    Just finished the series. I love it. Please add more!

  • @nartuz5016
    @nartuz50162 жыл бұрын

    This is just incredible. Keep up the good work man!

  • @izaanhafid
    @izaanhafid2 жыл бұрын

    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

  • @pineball43
    @pineball432 жыл бұрын

    You never cease to amaze me, always pushing scratch to its limits!

  • @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.

  • @yeetyeet5087
    @yeetyeet50872 жыл бұрын

    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

  • @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 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

  • @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

  • @arireallycool5245
    @arireallycool52452 жыл бұрын

    Very interesting solutions! Texture mapping floor and ceiling next ep perhaps?

  • @drevoksi
    @drevoksi2 жыл бұрын

    Although it feels like some parts may have been done a little simplier, this is such a great tutorial with some really interesting ideas!

  • @brothergodzilla
    @brothergodzilla2 жыл бұрын

    I'm speechless! YOU ARE A REAL SCRATCH HERO!!

  • @theattic0098
    @theattic00982 жыл бұрын

    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?

  • @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.trippin2 жыл бұрын

    yay! i love those wall textures!

  • @EpicVideos2
    @EpicVideos22 жыл бұрын

    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

  • @Jitendrasingh-gi4se
    @Jitendrasingh-gi4se2 жыл бұрын

    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
    @ganeshs76422 жыл бұрын

    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'

  • @That_0ne_Dev
    @That_0ne_Dev2 жыл бұрын

    This man is doing real 3D in scratch. He has ascend.

  • @lostforwar5619

    @lostforwar5619

    10 ай бұрын

    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

  • @evelynmisaki2428
    @evelynmisaki24282 жыл бұрын

    Damn, I remember your games from when I was a kid, they inspired me a lot to do game dev stuff proper. Thank you

  • @santiagoaguilera7289
    @santiagoaguilera72892 жыл бұрын

    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

  • @AustriaColorised
    @AustriaColorised2 жыл бұрын

    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

  • @orangemc750
    @orangemc750 Жыл бұрын

    thank you so much. i really love your vids. btw congrats for 200.000 subs!

  • @heyzbeauz
    @heyzbeauz2 жыл бұрын

    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!

  • @OrtonLongGaming
    @OrtonLongGaming2 жыл бұрын

    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

  • @shadow_1363
    @shadow_13632 жыл бұрын

    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!

  • @giganticduck2746
    @giganticduck27462 жыл бұрын

    Nice bro! I have been waiting 3 weeks!

  • @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

  • @oddlattle755
    @oddlattle7552 жыл бұрын

    I love how he does this with drag and drop blocks.

  • @jjsanimations

    @jjsanimations

    2 жыл бұрын

    fr lol

  • @Luigi3779
    @Luigi377911 ай бұрын

    ngl I find just *watching* these tutorials pretty relaxing for an unknown reason

  • @GroovyAka
    @GroovyAka2 жыл бұрын

    Woah, this is actually next level

  • @SaiponathGames
    @SaiponathGames2 жыл бұрын

    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!

  • @bulldozercowboy6400
    @bulldozercowboy64002 жыл бұрын

    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

  • @TheErrorNumberVideoEditor571

    @TheErrorNumberVideoEditor571

    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

  • @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.

  • @buckIin
    @buckIin2 жыл бұрын

    This is so amazing! Thanks for making this video!

  • @griffpatch

    @griffpatch

    2 жыл бұрын

    My pleasure

  • @garfieldandfriends7981
    @garfieldandfriends79812 жыл бұрын

    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.

  • @silvertakana3932
    @silvertakana39322 жыл бұрын

    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!

  • @JoshuaoGD
    @JoshuaoGD Жыл бұрын

    This was really fun :D thank you so much for this

  • @noot_noot843
    @noot_noot8432 жыл бұрын

    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

  • @matjam911
    @matjam9112 жыл бұрын

    Great video as always! If there is an Episode 8, I’d love to see Projectiles & Jumping in the future!

  • @trojanfrog
    @trojanfrog2 жыл бұрын

    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_mcconi2 жыл бұрын

    How about animated floor and roof? Like it moves as you move that would be amazing 😀

  • @Jet_08
    @Jet_082 жыл бұрын

    ive been playing this guys games on scratch an HOLY COW mans a legend!

  • @apo11ocat
    @apo11ocat2 жыл бұрын

    i keep rewatching this video because its so fascinating

  • @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

  • @ARandomCat554
    @ARandomCat55410 ай бұрын

    I've went through this entire video and i cant figure out why my walls arent showing

  • @connor_awesome6482

    @connor_awesome6482

    25 күн бұрын

    I’m having the same issue

  • @andrewbrzezinski223
    @andrewbrzezinski223 Жыл бұрын

    Griffpatch is so good at coding he could probably code this on scratch Jr.

  • @jenniewatkins9302

    @jenniewatkins9302

    9 ай бұрын

    impossible. you would need a pen extension.

  • @goldenredstone04
    @goldenredstone042 жыл бұрын

    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_lbp2 жыл бұрын

    If I'm not mistaken, technically using this, someone could make doom in scratch

  • @ChuckSploder

    @ChuckSploder

    Жыл бұрын

    unknown1guy2 is doing that

  • @Geoose49
    @Geoose492 жыл бұрын

    I think in the next episode you should make textures for floor and ceiling (if its possible)

  • @phinblue4989

    @phinblue4989

    2 жыл бұрын

    It is possible

  • @aeshaanferdous8416
    @aeshaanferdous8416 Жыл бұрын

    Wow! I cant wait for episode 8!

  • @stephs5064
    @stephs5064 Жыл бұрын

    I love this tutorial! I am using this along with Lemonoids to make a 3D Lemonoids game!

  • @grogus
    @grogus2 жыл бұрын

    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)

  • @-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.

  • @jay-tbl
    @jay-tbl2 жыл бұрын

    dude this is actually insane

  • @Cartoon64
    @Cartoon642 жыл бұрын

    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

  • @itzjustrandom5673
    @itzjustrandom56732 жыл бұрын

    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 ☺)

  • @balala4641

    @balala4641

    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)

  • @kaogaroo
    @kaogaroo2 жыл бұрын

    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

  • @TetrisKid48
    @TetrisKid482 жыл бұрын

    This is huge! Crazy.

  • @thatguystar817
    @thatguystar81710 ай бұрын

    the man did it good job man!

  • @romanpackham8471
    @romanpackham8471 Жыл бұрын

    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?

  • @impossiblestudios77
    @impossiblestudios772 жыл бұрын

    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

  • @CarlCraftGamesyt
    @CarlCraftGamesyt5 ай бұрын

    I loved!

  • @bonanafanafoindy366
    @bonanafanafoindy3662 жыл бұрын

    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.

  • @tooney3457
    @tooney34572 жыл бұрын

    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
    @AbdlFathir2 жыл бұрын

    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.

  • @bbmubinkk7928
    @bbmubinkk7928 Жыл бұрын

    Thank you this whole series was very helpful and allowed me to create fully functional game 🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩🤩

  • @ThatCrownedKing
    @ThatCrownedKing2 жыл бұрын

    Never thought this was possible on scratch!

  • @yeetyeet5087
    @yeetyeet50872 жыл бұрын

    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
    @TchaiXD2 жыл бұрын

    backrooms reference?

  • @e-playgroundz7102
    @e-playgroundz71022 жыл бұрын

    this is sooooo cool, i'm in a ickk scratch race and this just gave my a animatio;n a idea!

  • @hw2007
    @hw20072 жыл бұрын

    I hope the next episode is about texturing the roof & ceiling!

  • @Kirby_Super
    @Kirby_Super2 жыл бұрын

    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! kzread.info/dash/bejne/omudztpuqa7fc6g.html

  • @OrtonLongGaming
    @OrtonLongGaming2 жыл бұрын

    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

  • @mrequable
    @mrequable2 жыл бұрын

    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

  • @kriperproyoutuber
    @kriperproyoutuber24 күн бұрын

    Thanks for Tutorial, This is Helpuful.

  • @startFX
    @startFX Жыл бұрын

    I love this tutorial series. It would be even better if you added projectiles, like you said.

  • @ElectricVeil.
    @ElectricVeil.9 ай бұрын

    Griffpatch you are AMAZING!!!

  • @Martin-H15011
    @Martin-H150116 ай бұрын

    Thank you so much!

  • @RussianDoggo-pr6kc
    @RussianDoggo-pr6kc2 жыл бұрын

    i thought of a simple-ish way of adding multiple layers to the ray casting and its by saving the position of where the walls will generate and making the ray continue forward while saving the data of each layer/wall then generating them based on the data and optimize it by making it fully stop if it hits a full wall.

  • @andranikamrahyan3909
    @andranikamrahyan3909 Жыл бұрын

    Ooo yeah, thank you very much griffpatch 👍

  • @iamkeiju6756
    @iamkeiju6756 Жыл бұрын

    Wow this is amazing! It looks like Doom!