Sprites Behind Walls (Depth Sorting) | E4. Crazy Fun Raycasting

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024

ความคิดเห็น • 2.3K

  • @nguyentram1483
    @nguyentram1483 2 ปีที่แล้ว +301

    Scratch:fun coding for kids
    Griff:reality can be whatever i want

    • @MonkeJesus
      @MonkeJesus 2 ปีที่แล้ว +11

      Hes got a point

    • @wojtekgame
      @wojtekgame ปีที่แล้ว +4

      Griffpatch goes really on board!

    • @frchoco
      @frchoco ปีที่แล้ว +4

      I bet he can make the next scratch fortnite

    • @vaguedestruction
      @vaguedestruction ปีที่แล้ว +2

      This tutorial is made for kids to be able to follow, but yeah i see what you mean

    • @UnmaskedHistory
      @UnmaskedHistory ปีที่แล้ว +2

      @@vaguedestruction this is impossible

  • @gdb5549
    @gdb5549 2 ปีที่แล้ว +337

    scratch: Doesn't allow pen layering
    Griffpatch: Fine, I'll do it myself

    • @funraven659
      @funraven659 2 ปีที่แล้ว +27

      griffpatch is so smart, he can bypass a whole "no" from scratch

    • @ricardosantos2599
      @ricardosantos2599 2 ปีที่แล้ว +5

      2160-12-31 23:57
      2160-12-31 23:58
      2160-12-31 23:59
      1960-01-01 00:00

    • @ricardosantos2599
      @ricardosantos2599 2 ปีที่แล้ว +4

      0000-00-00 00:00

    • @gdb5549
      @gdb5549 2 ปีที่แล้ว +3

      @@ricardosantos2599 yes, ZERO

    • @wojtekgame
      @wojtekgame 2 ปีที่แล้ว +1

      No memes here

  • @fuzzy2107
    @fuzzy2107 ปีที่แล้ว +73

    scratch: helps kids problem solve
    griffpatch: helps scratch problem solve

    • @DaAlphaDawg
      @DaAlphaDawg 10 หลายเดือนก่อน +1

      lol

    • @Potatosium9701
      @Potatosium9701 8 หลายเดือนก่อน +1

      lol

    • @sudsy716
      @sudsy716 4 หลายเดือนก่อน +1

      So true 🤣

  • @ChezRatChez
    @ChezRatChez ปีที่แล้ว +85

    Next, he's going to make it 4d

    • @coolgameriguess
      @coolgameriguess 10 หลายเดือนก่อน +7

      It’s getting more and more real at the moment 💀

    • @tonyaarnett2655
      @tonyaarnett2655 9 หลายเดือนก่อน +4

      You mean 9885659466485935D?

    • @InvertedByDefault
      @InvertedByDefault 9 หลายเดือนก่อน

      bruh wat@@tonyaarnett2655

    • @valdemarandersson3234
      @valdemarandersson3234 8 หลายเดือนก่อน +4

      @@tonyaarnett2655 Our little comedian 😂😐

    • @A_youtuber2023
      @A_youtuber2023 7 หลายเดือนก่อน

      ⁠​⁠@@valdemarandersson3234who said he’s joking…. Griffpatch 2045 WHATS UP GUYS TODAY WE DO 4040404943838383838399D IN SCRATCH LETS GET SCRATCHING imagine tho

  • @theone.whoasked
    @theone.whoasked 2 ปีที่แล้ว +45

    Well now I can make a horror game thanks to you Griffpatch!
    hopefully scratch moderation spares me 😅

    • @ShowtimeMx
      @ShowtimeMx ปีที่แล้ว +2

      im making 1 TOO !

    • @MagicMaskedMonkey
      @MagicMaskedMonkey ปีที่แล้ว +2

      same?

    • @coolrb99
      @coolrb99 ปีที่แล้ว +4

      Same as well! have you heard of baldi's basics plus? in the game there was a field trip when you go to a corn maze however if you don't escape the maze a GIANT gotta reap reap will reap all the corn leading Baldi to catch you and teleport to you to the bus when you left off. It's kinda like that but you need to find 9 corn in the corn maze while avoiding Baldi.

    • @theone.whoasked
      @theone.whoasked ปีที่แล้ว

      @@coolrb99 This comment is old I already gave up making said game stop replying

    • @DaAlphaDawg
      @DaAlphaDawg 10 หลายเดือนก่อน

      lol same

  • @ranvirchoudhary929
    @ranvirchoudhary929 2 ปีที่แล้ว +229

    Hey griffpatch. Your platformer series helped me make a game for my school's coding competition! i put my own twist on it ofc. but i hope i win! fingers crossed! :)

  • @xamtastic
    @xamtastic 2 ปีที่แล้ว +148

    Nice to see you uploading griffpatch! You've been a massive inspiration for the Scratch community for years

    • @griffpatch
      @griffpatch  2 ปีที่แล้ว +38

      Hey, thanks!

    • @landnpr3414
      @landnpr3414 2 ปีที่แล้ว +4

      @@griffpatch hey help me pls im having a problem to where m height block is 3 and then the sprites size is 3 pls respond quick

    • @Seven71987
      @Seven71987 2 ปีที่แล้ว +2

      Scrappy Doo says "Do you know Yamaha, both music and motorcycles? What about Yoshi & Pikachu?"

    • @MatoStato2010
      @MatoStato2010 2 ปีที่แล้ว +1

      Hi, I animate too

    • @listed7568
      @listed7568 2 ปีที่แล้ว

      @@griffpatch Hi Grifffpatch. I need help. At the end of the video chapter "Drawing the scenes from the List" I tested out the game, and then I was stuck under the ground, and nano disappeared. Can you help?

  • @LilyTheCuteKitty432
    @LilyTheCuteKitty432 ปีที่แล้ว +18

    25:47 Watch, as the wild programmer changes his emotions in less than a second.
    Incredible! These creatures can change their emotions at command.

  • @boltyplays
    @boltyplays ปีที่แล้ว +7

    28:05 Scratch: No, I won't let you use the "touching (Entities)?" boolean block in the sprite Entities
    Griffpatch: Ok fine, I'll do it myself
    Scratch: WHA-

  • @zmggames
    @zmggames 2 ปีที่แล้ว +33

    Wow! I’ve always wanted to know how to place sprites behind pen and this was super helpful! Maybe you could talk about how to texture the walls into simple patterns like bricks? Thanks for all your videos!

    • @VALLUM38
      @VALLUM38 4 หลายเดือนก่อน +1

      guess what

  • @mcsuperplayer
    @mcsuperplayer 2 ปีที่แล้ว +97

    Idea: when key M is pressed, the Level and player sprite have their ghost effect set to 90 instead of 100
    Essentially giving a map of the level

    • @griffpatch
      @griffpatch  2 ปีที่แล้ว +46

      Ha, I already have that added to the next episode scripts :) great minds!

    • @Speed-TV
      @Speed-TV 2 ปีที่แล้ว +3

      Hey you stole that idea from my game >:(

    • @LitoMike
      @LitoMike 2 ปีที่แล้ว

      yes

    • @snufkin8940
      @snufkin8940 2 ปีที่แล้ว +5

      @@Speed-TV a lot of people did that

    • @noobyplays3981
      @noobyplays3981 2 ปีที่แล้ว +7

      ​@@griffpatch i did that back when we hid the levels, where i made it
      if
      [set {ghost} effect to (40)]
      else
      [set {ghost} effect to (100)]

  • @frankytrews3953
    @frankytrews3953 2 ปีที่แล้ว +72

    You could use the path finding algorythme in this project for the enemies!

    • @undertalerandomvideos5222
      @undertalerandomvideos5222 2 ปีที่แล้ว +13

      And quite possibly the random maze generator for the level itself

    • @morveman_yt9567
      @morveman_yt9567 2 ปีที่แล้ว +8

      By the way the pathfinder is quite slow when you are moving around but it works and for the maze generator form griffpatch, the problem is they used pen and not sprite but it could be very fun to have that stuff

    • @1080GBA
      @1080GBA 2 ปีที่แล้ว +2

      @@undertalerandomvideos5222 the stamp in level generation breaks the project

    • @esthermoriarty7211
      @esthermoriarty7211 2 ปีที่แล้ว

      *algorithm

    • @gamerz_rule7140
      @gamerz_rule7140 ปีที่แล้ว

      @@undertalerandomvideos5222 Impossible Since both require pen, You would need to hide the map but there is no "if touching pen" block So It is a scratch impossibility; Just sayin'

  • @zekeggy
    @zekeggy 10 หลายเดือนก่อน +6

    man, your tutorials are so good that i don't even have to watch the video to follow
    i can just listen
    keep up the good work man

  • @kingisawesome2086
    @kingisawesome2086 ปีที่แล้ว +2

    You might not see this, but I really need help - it appears as though my character acts as the lines drawn for walls. Please help!

  • @uxw05
    @uxw05 2 ปีที่แล้ว +20

    THIS IS SO COOL! I mean, I did have to split my projects’ updates in 2 (except for fnaf 3), but it was WORTH IT! Thank you so much Griffpatch!

    • @Scyr0
      @Scyr0 6 หลายเดือนก่อน

      Bro this tutorial is about A maze like backrooms not Freddy Fazbears Pizzeria dont know griffpatch does not know about Fnaf YOu Idiot William Afton

  • @SUPY_
    @SUPY_ 2 ปีที่แล้ว +19

    You should add jumping, and actuall floor collision,and render script (make platforms in the air). I would really want to learn that. Also, there is a way too make entitys look 3D with some maths and pen.

    • @thatreddinosaurguy
      @thatreddinosaurguy 2 ปีที่แล้ว +2

      Dev, I was thinking about jumping!!!

    • @preloadingwastaken
      @preloadingwastaken 2 ปีที่แล้ว +5

      I'm afraid, with the system currently, it is impossible (without making the game unplayible and glitch a lot) This is projecting a 2d world as if it was 3d Jumping is possible as an optical illusion

    • @jlewwis1995
      @jlewwis1995 2 ปีที่แล้ว +2

      @@preloadingwastaken well it wouldn't be that difficult to add a Z height to entities even if the world is 2d, though like I said the world is entirely 2d so its not like there would be a point to doing that but it could be done

    • @preloadingwastaken
      @preloadingwastaken 2 ปีที่แล้ว +3

      @@jlewwis1995 You are aware that you would need to do almost 200 more raycasters just for it, Raycasting is only meant for 2 cords. If you do make one that does it without remaking the whole system I'll take my words back (and it has to be playable)

    • @jlewwis1995
      @jlewwis1995 2 ปีที่แล้ว

      @@preloadingwastaken uh no? Just move the entities up and down on the screen based on their height l? And implement y-shearing so the player can look up and down, obviously it isn't true looking up and down but that's beside the point, either way problem solved :p

  • @Amalya_DSG
    @Amalya_DSG 2 ปีที่แล้ว +17

    You might want to cap off the entity brightness by using an if statement and a greater than block to prevent them from getting brighter than the original sprite.

    • @thejustlexa
      @thejustlexa 2 ปีที่แล้ว +2

      this is a smart idea but its impossible, considering the brightness effect isnt a variable, so you cant input into an if statement. well, unless there's some work around for that i just dont know about

    • @Pratixx
      @Pratixx 2 ปีที่แล้ว +1

      @@thejustlexa you take the brightness setting code and check if its not over 0, and if it isnt then do the basic brightness setting code. else, simply set brightness to 0

    • @thejustlexa
      @thejustlexa 2 ปีที่แล้ว +1

      @@Pratixx thats... not how it works? theres no way to check what the brightness effect is set to?

    • @Pratixx
      @Pratixx 2 ปีที่แล้ว +2

      @@thejustlexa
      if ( not ( ( 40 - ( Distance / 1.5 ) ) > 0 ) ) then
      set brightness effect to ( 40 - ( Distance / 1.5 ) )
      else
      set brightness effect to ( 0 )
      end

    • @foxxitatoriguess
      @foxxitatoriguess 2 ปีที่แล้ว

      @@Pratixx you could also just make it change a variable which brightness gets set to?

  • @martijnbruins6732
    @martijnbruins6732 2 ปีที่แล้ว +4

    28:00
    scratch be like: we won't let you select another entity
    griffpatco be like: fine. ill do it my own way

    • @lesslieadams4028
      @lesslieadams4028 5 หลายเดือนก่อน

      Ah yes, "griffpacho." Definitely a name.

  • @billybob3064
    @billybob3064 ปีที่แล้ว +2

    While I was doing this tutorial the raycaster stopped showing my level and now it's just a void.

  • @jayplayday8941
    @jayplayday8941 2 ปีที่แล้ว +12

    Now we need to have enemies that can follow us around the map, and this is a great tutorial series!

  • @mrequable
    @mrequable 2 ปีที่แล้ว +9

    Could you show us how to add a crouch system? That would be really interesting!

    • @ehabgame
      @ehabgame 2 ปีที่แล้ว

      And jump

  • @hi_beemo1808
    @hi_beemo1808 2 ปีที่แล้ว +41

    suggestion: it'll be so cool if you add a mini map on one of the corners that rotates with the player's direction 😉👌

    • @PabTSM-OfficialChannel
      @PabTSM-OfficialChannel 2 ปีที่แล้ว +2

      just make the map visible when you press the m key, also make the player visible as well

    • @wohao_gaster7434
      @wohao_gaster7434 2 ปีที่แล้ว +3

      @@PabTSM-OfficialChannel or make mini sprites to not f up the collisions when your resize it

    • @super_manul1167
      @super_manul1167 2 ปีที่แล้ว

      its difficult trust me we tried

    • @jyke321
      @jyke321 2 ปีที่แล้ว

      @@super_manul1167 what if you stamped a shrunk version, and then reverted it before doing collisions

    • @TheOfficialSocksNSandals
      @TheOfficialSocksNSandals 2 ปีที่แล้ว

      @@jyke321 PLS DO

  • @personalaccount9790
    @personalaccount9790 ปีที่แล้ว +2

    took me hours to realize what i did wrong with raycasting into a list, hopefully i can save someone that time.
    BUG: annoying vertical line of pen in the center of your screen, behind your walls
    SOLUTION: row # should start at one, not zero.
    silly mistake but one that got me frustrated!

  • @wyattlogan8129
    @wyattlogan8129 ปีที่แล้ว +3

    hey does anyone know why i am only seeing my background? Ive gotten to 11:00 of the video and don't know what I have done?

    • @SwankemasterSupreme
      @SwankemasterSupreme ปีที่แล้ว

      Raycast sprite is too big

    • @wyattlogan8129
      @wyattlogan8129 ปีที่แล้ว

      @@SwankemasterSupreme I changed it but it didnt do anything for it

    • @Syamfprch
      @Syamfprch 6 หลายเดือนก่อน

      I think its because of somehing with the erase all block, works fine if you remove it while keeping a copy in the light entity, but you cant place the entities behind walls

  • @ktlknss
    @ktlknss 2 ปีที่แล้ว +9

    Idea: Camera movement up and down would be very cool

    • @ballsucker89
      @ballsucker89 2 ปีที่แล้ว +4

      would probably be hard, but would be very cool, especially for cutscenes and stuff

  • @ruchikataria1594
    @ruchikataria1594 2 ปีที่แล้ว +21

    Awesome tutorial! Also can't wait for procedural world generation and the next mario episode!

  • @RhinoDudeWozz
    @RhinoDudeWozz 2 ปีที่แล้ว +6

    Griffpatch could is suggest you do a part 5 on Textured walls And btw Your content is amazin keep up the good work! :)

  • @Devappl187
    @Devappl187 ปีที่แล้ว +4

    I love the little smiley face in the captions :D

  • @jonnetikka5238
    @jonnetikka5238 ปีที่แล้ว +1

    Hey griffpatch, I have a problem with the depth sorting. My entity only shows as a wall until i get super close to it how do i fix this?
    Edit: I checked all my scripts and they were the exact same as yours. I also checked the type list data and found the type "1" but the entity would still only show as a wall from afar.

  • @epicgarbgehere2011
    @epicgarbgehere2011 2 ปีที่แล้ว +21

    this man is awesome, like he created a literal 3D game in a 2D program, MY MAN JUST ADDED SOME DEPTH TO SCRATCH BRO

    • @YusafAnimations
      @YusafAnimations 2 ปีที่แล้ว +1

      Ikr!

    • @archusrtm6325
      @archusrtm6325 2 ปีที่แล้ว +4

      Its not true 3d though. While griffpatch has done a great tutorial raycasting is nothing new. Before true 3d games like “half life” came out most 3d games looked like the original doom or wolfenstein games. Raycasting is just creating the illusion that a 2d map is 3d

    • @ArchedRocket
      @ArchedRocket ปีที่แล้ว

      So he killed a man with a healing potion🤣

    • @Scyr0
      @Scyr0 6 หลายเดือนก่อน

      OMG its Fat Garbage Shrek @epicgarbagehere2011

  • @backtoq670
    @backtoq670 2 ปีที่แล้ว +6

    I just coded this onto a project and it was really fun and a bit educational! Can't wait for episode 5!

  • @lynx.ver1fied
    @lynx.ver1fied 2 ปีที่แล้ว +7

    I've learned so much from you griffpatch! Great work!!

  • @orrinpants
    @orrinpants 2 ปีที่แล้ว +11

    I thought about how the next episode would make all entities enemies and collectibles, so I decided to change to Tera because the characters other than Scratch Cat have expressions such as mad.

    • @PercydeRoloFangirl
      @PercydeRoloFangirl 10 หลายเดือนก่อน

      I'm going to make custom enemy sprites later but for now using a placeholder

    • @chelseagonzales4294
      @chelseagonzales4294 4 หลายเดือนก่อน

      @@PercydeRoloFangirlI’m just using a bean as a placeholder

  • @Chrono_85
    @Chrono_85 ปีที่แล้ว +1

    Hey Griffpatch, I follwed everything as you showed, but for some unknown reason, my "Nano" sprite is strangely stamped in the background (behind all of the walls), and my "Nano" also doesn't change height according to perspective! Where did I go wrong?

    • @xamtastic
      @xamtastic ปีที่แล้ว

      I've also got a weird problem. My entity displays as a line of wall, and all the walls are my entity stamped a bunch of times! It looks really weird and I've gone back into the code and checked EVERYTHING but nothing works

    • @Daniel-sb8kv
      @Daniel-sb8kv 3 หลายเดือนก่อน

      well, did you fix it? Let me know, I have the same problem

  • @Stagpro99
    @Stagpro99 ปีที่แล้ว +2

    My maze is not showing when I've put in my code in at 7:21

  • @RaharOfficial
    @RaharOfficial 2 ปีที่แล้ว +19

    BIG thanks for the tutorial! This is a lot helped me!

  • @lanied09
    @lanied09 2 ปีที่แล้ว +4

    I’d like to recommend something. I saw a video that you made nine months ago where it makes its own maze what if there’s people who want to have replayability in their games so hopefully you can make a tutorial on how to make a 3-D game that makes its own layout.

  • @ytstoat
    @ytstoat 2 ปีที่แล้ว +8

    Amazing tutorial! Even created my own “Sensitivity” variable at the beginning so it was easier to control how fast I looked around.

    • @ballsucker89
      @ballsucker89 2 ปีที่แล้ว +1

      thats a really good idea man! is it alright if i use it in my game?

    • @ytstoat
      @ytstoat 2 ปีที่แล้ว

      @@ballsucker89 yes of course! don’t worry I didn’t invent the idea of sensitivity

    • @ballsucker89
      @ballsucker89 2 ปีที่แล้ว

      @@ytstoat thank you! this idea is so good and yet so easy to make

    • @srevia
      @srevia 2 ปีที่แล้ว

      i did that already lol

    • @PatPatYT
      @PatPatYT 2 ปีที่แล้ว

      I did too

  • @theoctagonguy24
    @theoctagonguy24 2 ปีที่แล้ว +4

    Hi Griffpatch! When I did the stamp thing, My entity went bigger when I walked away from it, and a very big one was in the background behind everything, any tips for this bug? Thanks!

  • @NeekBot5000
    @NeekBot5000 ปีที่แล้ว +2

    For the part 5:08, if I used a custom color that isnt a number, instead used with the color palette (in the pen block), how do I put that there?

  • @annihilate2479
    @annihilate2479 2 ปีที่แล้ว +4

    This is great hope the enemy’s will kill in the future and after this can update the platformer series

  • @mroofity6594
    @mroofity6594 2 ปีที่แล้ว +13

    Hey Griffpatch, I believe I’ve figured out how to add verticality to the camera! When messing around with base ray tracing code trying to add jump, I accidentally stumbled on it. I’m awful at explaining things but I’ll attempt to:
    Create a new costume in the Raytracing sprite. Make that sprite absolutely massive. The bigger a sprite, the further it can go off screen from what I’ve seen.
    Create a new variable to represent vertical looking directions(would suggest adding a cap to it of 400. It moves 4x as slow as normal directions from what I’ve tried)[I’ll be calling the variable *up* )
    Then, where the normal bricks for raytracing is, replace the bottom of the wall generation with this
    [switch costume to (Huge)]
    [go to x: (x) y: (height - up)]
    [if(y > -180){
    [Pen Down]
    [Change y by (height*-2)]
    [Pen Up]
    }]
    [switch costume to (hitbox)]
    This is probably a bad explanation lol. If wanted, I can send a turbowarp link with the vertical stuff,(unsure with how it mixes with enemies and other things yet)
    Also Griff, massive thank you for the tutorials and everything else you have done for the scratch community. Your work is truly amazing mate

    • @FlummoxTheMagnificent
      @FlummoxTheMagnificent 2 ปีที่แล้ว +1

      Oh, I simply did it by adding scratches mouse y variable to the height. I did the same thing with mouse x for turning, and now it feels like a proper first person game!

    • @TheAccursedEyeball
      @TheAccursedEyeball 2 ปีที่แล้ว

      A turbowarp link would be nice.

  • @theoriginaldrdust
    @theoriginaldrdust 2 ปีที่แล้ว +8

    I already have a million ideas that I could make with this alone, can’t wait for part 5!

    • @funraven659
      @funraven659 2 ปีที่แล้ว +1

      Who can wait for part 5? He's so good we beg for part [current part] + 1

    • @theoriginaldrdust
      @theoriginaldrdust 2 ปีที่แล้ว +6

      @@funraven659 Lets say ‘Current part = X’. X+1 is what we always want. We also need an average time between parts, lets say ‘T’. What we want is Tx0 and X+1. Sadly this is impossible, so we need a work-around. Make a new scratch block. Lets call it ‘Condense Time’. Run without screen refresh. Okay! Now move this into some free space and apply the following: [REDACTED]. Now if we run this script… voilà! We now have a new episode. Rinse and repeat.
      Read this in griffpatch’s voice.

    • @funraven659
      @funraven659 2 ปีที่แล้ว

      Ok, @@theoriginaldrdust

  • @leoshortnose
    @leoshortnose 18 วันที่ผ่านมา +1

    how are you keeping nano in the same place? in my game, my character isn't staying put in the exact same spot and is moving around weirdly when I turn around. how do I fix this?

  • @REDIMPOSTER-l3w
    @REDIMPOSTER-l3w 14 วันที่ผ่านมา +1

    SH*T! THE FIRST PART DELETED MY 3D MAZE BUT...... i believe in you im gonna continue and see the result

  • @legendgames128
    @legendgames128 2 ปีที่แล้ว +4

    "Pants." griffpatch 2022

    • @LitoMike
      @LitoMike 2 ปีที่แล้ว +2

      *" P A N T S . "*

  • @actisgone2992
    @actisgone2992 2 ปีที่แล้ว +4

    Make it so that we can transfer into different levels of the game because this seems like a perfect way to make a 3d horror game in scratch! Reminds me of IMSCARED

    • @robpk168
      @robpk168 2 ปีที่แล้ว

      To change levels, just switch the Level and Level Color sprites when you touch an entity.

  • @real4kGaming
    @real4kGaming 2 ปีที่แล้ว +7

    Suggestion: add Multiplayer 3d, with the players appearing as a separate entity

    • @anything_productions_lol2354
      @anything_productions_lol2354 2 ปีที่แล้ว

      im already attemting that!

    • @malwaremation-informaticaa9749
      @malwaremation-informaticaa9749 2 ปีที่แล้ว +1

      Too easy to make a tutorial. But it would be cool.

    • @thememer4071
      @thememer4071 2 ปีที่แล้ว

      I’m already trying that,I’m trying to make a 3D undertale remake

    • @thememer4071
      @thememer4071 2 ปีที่แล้ว

      3D multiplayer undertale full game remake!

    • @real4kGaming
      @real4kGaming 2 ปีที่แล้ว

      @@thememer4071 that sounds very hard to make, but 3d Undertale would be very fun to play

  • @hometimemayhem928
    @hometimemayhem928 2 ปีที่แล้ว +2

    5:48
    edit: who liked this this is just my bookmark

  • @GolubO4EK_
    @GolubO4EK_ ปีที่แล้ว +2

    when I drag the script from Raycaster to Pen, everything breaks down for me

    • @ccg40
      @ccg40 ปีที่แล้ว +1

      same

  • @vVearon
    @vVearon 2 ปีที่แล้ว +4

    i can imagine scratch shorts where griffpatch teaches something as fast as possible.
    but since he has to make it fast everyone already knows it but still enjoy

  • @1080GBA
    @1080GBA 2 ปีที่แล้ว +6

    I really hope there will be a multiplayer raycasting episode

    • @listed7568
      @listed7568 2 ปีที่แล้ว +1

      same

    • @alex2792
      @alex2792 ปีที่แล้ว

      I wonder how that would work.

  • @WylderGaming
    @WylderGaming 2 ปีที่แล้ว +6

    Awesome tutorial, a tutorial on how to make the entities move/chase you would be very cool too!

    • @DudeSusIsTaken
      @DudeSusIsTaken 2 ปีที่แล้ว +2

      how was this 2 days ago the video literally just came out lol

    • @moviastdyst
      @moviastdyst 2 ปีที่แล้ว +2

      @@DudeSusIsTaken
      Joining to Griffpatch's Membership allows members to get early access on his videos

    • @xioana
      @xioana 2 ปีที่แล้ว +1

      Make a sprite named bot and make another raycaster, except for the bot. Also make sure in the player raycaster you add the ability to look at the bot, Add a if inside the bot raycaster that checks if touching player (also make sure it has level too lol) and broadcast touching player, In a when i receive block point towards player and move 5 steps. There you go. (sorry i dunno how to do it with the 2d sprites)

  • @silasellenberger-march588
    @silasellenberger-march588 2 ปีที่แล้ว +1

    scratch: we dont have pen layering
    griffpatch: i,m gonna pretend i did not here that

  • @BUNUforReal
    @BUNUforReal 8 หลายเดือนก่อน +1

    Hey, i have a problem with this and idk why. I am half this video and after remaking the coding for the pen (before pen layering) when i run it a line is put under the entity for some reason, when it is lower than a wall. Any fix?

  • @lorenzohfj1310
    @lorenzohfj1310 2 ปีที่แล้ว +3

    23:11 - problem: the entity don't stamp ☹️

  • @artmon_
    @artmon_ 2 ปีที่แล้ว +5

    Very good video, maybe add a multiplayer system.

    • @noobertplaying2395
      @noobertplaying2395 2 ปีที่แล้ว

      Dude Its IMpossible to Add Multiplayer In Scratch

    • @saverofthewo
      @saverofthewo 2 ปีที่แล้ว

      @@noobertplaying2395 no its not cloud variables

  • @-_lIl_-
    @-_lIl_- ปีที่แล้ว +3

    10:55 that public announcement edit had me laughing, especially because of the way it was said 😂

  • @richdavis1172
    @richdavis1172 หลายเดือนก่อน +1

    Thank you so much Griffpatch! I have been watching you ever since I was little, You helped me turn into the person I am today and I just wanted to thank you for it.

  • @Daniel-g1q5q
    @Daniel-g1q5q 3 หลายเดือนก่อน +1

    help, i dont know exactly whats wrong but heres the problem: when i ran the project while showig lists; type, dist and x the only thing they said was (type) 4, (dist) changes as i look in a different direction, (x) 244. Please, i dont know what to do and this is very important because its a school (kind of) group project. Dont worry, im adding a whole storyline and different levels but i need this to work

  • @v0calgiant12
    @v0calgiant12 2 ปีที่แล้ว +6

    Griffpatch: "Wow, this represents a distance that is far, far away, much further than any well we'll ever draw." ( 13:55 )
    Me: "MY GOALS ARE BEYOND YOUR UNDERSTANDING"

  • @itzwindows
    @itzwindows 2 ปีที่แล้ว +8

    Could've you used a faster algorithmn than insertion sort? (e.g. quick sort, insertion sort) While the sort you used is a bit faster than bubble sort, it is still considered inefficient due to its O(n^2) average performance (meaning that it makes n^2 comparisons/swaps where n = the number of items in the list).

    • @JulienVanier
      @JulienVanier 2 ปีที่แล้ว +2

      The trick is to start from the last inserted position. When the next wall is next to the previous wall (which is the majority of cases), the search will finish after one change by -1 or +1. Only when switching to a far away wall will the search take longer. So insertion sort has a much better actual performance than the worse case O(n^2) and is a great choice here.

    • @rivercape982
      @rivercape982 2 ปีที่แล้ว

      What?

  • @Bannedoskar
    @Bannedoskar 2 ปีที่แล้ว +5

    Also like the idea of having enemies chase you!

    • @1080GBA
      @1080GBA 2 ปีที่แล้ว +1

      Emperorororororoz55

    • @hermenthicclol1848
      @hermenthicclol1848 2 ปีที่แล้ว

      yea

    • @coolswag352
      @coolswag352 2 ปีที่แล้ว

      well if you want to just do what i tell you
      make sure you do this in the entity's
      step1: put a put a move [ the speed you want ] block in a forever loop
      step2: add a look at block of the input of player
      ya done

    • @jumpwithkarl
      @jumpwithkarl 2 ปีที่แล้ว +1

      @@coolswag352 the only real downside is that they move through walls, they could work with ghost related enemies

    • @1080GBA
      @1080GBA 2 ปีที่แล้ว

      @@jumpwithkarl ghost in among us

  • @Daniel-g1q5q
    @Daniel-g1q5q 3 หลายเดือนก่อน +1

    help, i dont know exactly whats wrong but heres the problem: when i ran the project while showig lists; type, dist and x the only thing they said was (type) 4, (dist) changes as i look in a different direction, (x) 244. Please, i dont know what to do and this is very important because its a school (kind of) group project. Dont worry, im adding a whole storyline and different levels but i need this to work

  • @Daniel-g1q5q
    @Daniel-g1q5q 3 หลายเดือนก่อน +1

    help, i dont know exactly whats wrong but heres the problem: when i ran the project while showig lists; type, dist and x the only thing they said was (type) 4, (dist) changes as i look in a different direction, (x) 244. Please, i dont know what to do and this is very important because its a school (kind of) group project. Dont worry, im adding a whole storyline and different levels but i need this to work

  • @dittomario
    @dittomario 2 ปีที่แล้ว +8

    damn, i really love this, its the best scratch raycaster tutorial series so far! keep going!
    i suggest add a jumping mehcanic, textured walls or multicolored walls, and as a bonus, a path finding algorithm for the enitites!

    • @ES_Alt3
      @ES_Alt3 ปีที่แล้ว

      Bro just predicted the future 💀

    • @dittomario
      @dittomario ปีที่แล้ว

      ​@@ES_Alt3lmaoo💀💀💀

  • @Reddblue
    @Reddblue 2 ปีที่แล้ว +6

    This series is so amazing. I think a good tutorial would be to make textured walls

  • @danielszap6794
    @danielszap6794 2 ปีที่แล้ว +6

    This is so cool. I am really glad we have been able to do all of this in our 3D project. I can’t wait to explore everything else there is to see about this 3D world. Especially entity movement and collectibles. Best series in all of TH-cam. Thanks so much GriffPatch.

  • @Daniel-g1q5q
    @Daniel-g1q5q 3 หลายเดือนก่อน +1

    help, i dont know exactly whats wrong but heres the problem: when i ran the project while showig lists; type, dist and x the only thing they said was (type) 4, (dist) changes as i look in a different direction, (x) 244. Please, i dont know what to do and this is very important because its a school (kind of) group project. Dont worry, im adding a whole storyline and different levels but i need this to work

  • @Daniel-g1q5q
    @Daniel-g1q5q 3 หลายเดือนก่อน +1

    help, i dont know exactly whats wrong but heres the problem: when i ran the project while showig lists; type, dist and x the only thing they said was (type) 4, (dist) changes as i look in a different direction, (x) 244. Please, i dont know what to do and this is very important because its a school (kind of) group project. Dont worry, im adding a whole storyline and different levels but i need this to work

  • @thebrends
    @thebrends 2 ปีที่แล้ว +4

    Scratch team: watches griffpatch break scratch laws
    Scratch team: Excuse me?

  • @koraichu
    @koraichu 2 ปีที่แล้ว +4

    We should learn texture mapping and the Doom-Style effect that it uses for calculating height!
    With that, we could make a lot more intricate levels, I think.

  • @Daniel-g1q5q
    @Daniel-g1q5q 3 หลายเดือนก่อน +1

    help, i dont know exactly whats wrong but heres the problem: when i ran the project while showig lists; type, dist and x the only thing they said was (type) 4, (dist) changes as i look in a different direction, (x) 244. Please, i dont know what to do and this is very important because its a school (kind of) group project. Dont worry, im adding a whole storyline and different levels but i need this to work

  • @BlastingBricks2023
    @BlastingBricks2023 2 ปีที่แล้ว +1

    Uh HELLO Griffpatch! So I followed till here, but I don't know why the walls are turning BLACK. I rechecked, but no luck. I don't know why they are black!!!

  • @miggle2784
    @miggle2784 ปีที่แล้ว +1

    I have a massive problem in my code. Whenever I start the script, the draw idx variable infinitely goes down and nothing is ever drawn. There is also a decent amount of lag. I can’t figure out what’s causing the problem (mostly because I don’t understand the code in the first place). Help.

  • @Froyo1002
    @Froyo1002 2 ปีที่แล้ว +1

    hey griffpatch! I'm having problems with my raycasting where it will only draw one row right down the middle and I dont know what the problem is. can you help me?

  • @FulaxoPishulaxo
    @FulaxoPishulaxo 2 ปีที่แล้ว +2

    Idk if someone may see this comment but I need some help, I followed the tutorial step by step to see how it worked for me, but now I'm stuck because of one single problem
    At the moment of stamping the sprite it does kinda correctly, but it doesn't stay in place like before
    and the other thing is that one of the stamps is fixed on the center of the camera, and I don't know what to do get it out of there
    I'm not sure if I f***ted it up on some script or what

    • @cduke1972
      @cduke1972 2 ปีที่แล้ว

      same with me

    • @Daniel-sb8kv
      @Daniel-sb8kv 3 หลายเดือนก่อน

      Did you fix it, same problem here

  • @Terencelei_
    @Terencelei_ 2 ปีที่แล้ว +1

    Griff, please help! My Pen sprite wont teleport to my Entities sprite, and it started doing this during the Handle Entity Drawing from the List Part, around 23:10 when I proceeded to also start my project, but the Pen sprite wasn't there. He's just in the corner of the screen and I can't see him until I click the show button on him. Please help me if you can! I don't wanna start all over again... again!

  • @nicolascovino6853
    @nicolascovino6853 ปีที่แล้ว +1

    I need you help, when you creates the lists they give a number of elements no more than 60, in my case is more of 19440, and goes so laggy, how can I solve it? Sorry for my poor english, I'm a spanish speaker but I love your content

  • @foxyonfire
    @foxyonfire ปีที่แล้ว +1

    Hey griffpatch, i am not sure if you will see this but i need some help. My entity is stuck at size 100 and there is another stamp of it in the center of the level. Could you please help?

  • @DeApple_king
    @DeApple_king 2 ปีที่แล้ว +1

    Griffpatch I followed everything carefully but the stuff does not work even the cloning one and I tried 2 times in different copy's of part 3 and it deleted my work good thing I had another copy but I did it carefully and I'm on my last copy of part 3 am I doing anything wrong

  • @MrHosda
    @MrHosda ปีที่แล้ว +1

    Hey Griffpatch I'm a big fan of yours and I have a game idea, make an online 3d game from scratch

  • @Official_zaDpi
    @Official_zaDpi 2 ปีที่แล้ว +1

    Omg I can't wait to finish watching this series, then I could maybe use your multiplayer tutorial to add multiplayer 0-0

  • @carlosa.j.4335
    @carlosa.j.4335 ปีที่แล้ว +1

    Hi griffpatch, or anyone who is reading this, when I render the entity, if I far away a lot of it, the game will show the entity to traspass the wall. Can you help me please?

  • @fortnitewolf7702
    @fortnitewolf7702 2 ปีที่แล้ว +1

    something is wrong, when i do that the sprite is in place and covers behind walls... but the sprite is also as a clone bihind everything and very big. is there anything to do?

  • @yabroblackcat
    @yabroblackcat 2 ปีที่แล้ว +1

    You sound like Stampy
    Edit: This is NOT a hate comment for those of you who think it is

  • @jamolovaoisha6386
    @jamolovaoisha6386 ปีที่แล้ว +1

    Griffpatch i have problem at 25:30 time. The nano's head is half back of walls, when i go to nano, nano will get smaller. Pls help me on this problem

  • @saverofthewo
    @saverofthewo 2 ปีที่แล้ว +1

    looking at your previous tutorials, i did not mess anything up. so explain why you are erasing the list every few frames?

  • @Orhaniliyeriz3
    @Orhaniliyeriz3 3 หลายเดือนก่อน +1

    Hey help me my wall are not working help and my wall are not showing😢

  • @nigorazakirova4230
    @nigorazakirova4230 4 หลายเดือนก่อน +1

    Bad news guys,my walls don't even appear!anyone,tell me the solution!please!

  • @Starlight85000
    @Starlight85000 ปีที่แล้ว +1

    I have a problem with spawning of any costume it's keep teleporting around the map and I can't stop it

  • @jbbiron2211
    @jbbiron2211 ปีที่แล้ว +1

    In 23:18, The NPC doesn't show, I tried replacing the hide block with a show block, but the NPC just goes crazy when shown

  • @Gamer-do3vh
    @Gamer-do3vh 2 ปีที่แล้ว +1

    This Series Screams “Tell me your smart without telling me your smart”

  • @InvertedByDefault
    @InvertedByDefault 9 หลายเดือนก่อน +2

    bro likes variables...

  • @TTV-Productions
    @TTV-Productions 9 หลายเดือนก่อน +1

    Griffpatch is the goat of scratch. no one can change my mind.

  • @ChezRatChez
    @ChezRatChez ปีที่แล้ว +1

    for some reason, my sprites go on to the side and go up and down when they are to the side of me and my raycasting shouldn't see them

  • @paulai.3825
    @paulai.3825 2 ปีที่แล้ว +1

    i can't project it ( the sprite in question (nano)) the lists don't work it just puts a black wall

  • @DuckieAM_viewing_chanel
    @DuckieAM_viewing_chanel 4 หลายเดือนก่อน +1

    I got a little bit sad when relising my cute new little frend in our game named nano is gonna be our enemy

  • @The_outlaw84
    @The_outlaw84 ปีที่แล้ว +1

    im having a bug where my entity sprite wont change size anyone know a fix

  • @KyukyeBull
    @KyukyeBull 2 ปีที่แล้ว

    Hey griffpatch! I did everything exactly like you, but when I tried to test part called "Handle Entity Drawing from the List" there was a problem.
    I drew entity sprite that height so it is higher than player eyes. And when you tested it all was perfect, but... In my project entity didn't go to the right layer and even change size by player movement and it was look like endless jumpscare. Help, please