Collectables & Enemies that Chase | E5. Crazy Fun Raycasting

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ก.ค. 2024
  • How to add irresistible collectables & Enemies that chase after the player.
    This Scratch tutorial on coding a 3D raycaster game is getting so much fun!
    We cover enemy wall collisions, and also stop them from walking on top of each other. We add a star collection counter and prepare the ground for a game over screen... Perhaps you guys can take it from here?
    👀 Part 6 - • ULTRA FAST Raycasting ...
    🔥 Bug Fixes - • Quick Fixes for Raycas...
    Don't forget to submit your projects to the studio linked below by commenting the project URL in the studio comments.
    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
    🐱 Scratch Studio for this tutorial - scratch.mit.edu/studios/31089...
    💯 Awesome Number Counters - • Awesome Number Counter...
    👀 Part 1 - • Crazy Simple Raycastin...
    👀 Full Episode Playlist - • Crazy Fun Raycasting (...
    👀 Quick and Fun Tutorials - • Quick and Fun Scratch ...
    ❤️ Scratch Addons - scratchaddons.com/
    📹 Video Editing Software - techsmith.pxf.io/c/2682566/50...
    -------------Video Chapters-------------
    0:00 Intro
    0:48 Shadow Under Nano
    1:39 Pen Length Bug
    3:17 Wall Height
    4:32 New Entity Types
    7:11 Full Screen Map View
    9:35 Entity Sizes and Colours
    11:38 Enemy Movement, Chasing the Player
    13:08 Enemy to wall collisions
    14:46 Personally Boundaries
    16:05 Sticky Entities
    17:29 Player Health
    19:32 Collectables
    23:13 Collectables Counter
    24:27 Outro

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

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

    🔥BUG FIX 🔥
    OH MAN - Really sorry, I still messed up the entity costumes. We need to add a switch costume to 'type' in the pen sprite under the "stamp x y" script! - I've added a few other fixes to the same script in a photo under the community tab: th-cam.com/channels/awsI_mlmPA7Cfld-qZhBQA.htmlcommunity?lb=Ugkx4DaJzF6Wakuhh_JWIsNMTLlePVAlTEjH - I'll make a video update soon enough, but until then you can use this. So sorry! Scratch on guys!

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

      pin this comment so people see it

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

      Thanks

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

      Cant wait

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

      @@Oatea Arrghh!! I thought it WAS pinned lol

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

      @@griffpatch lol

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

    This is beyond my Scratch ability, but I might even try to do this from episode 1! Thank you for helping the community so much, griffpatch.

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

      You can do it! :D - And it's my pleasure

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

      Get this to 69 likes

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

      @@trackstxar haha the funny number

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

      @@DorukoOFFICIAL xD

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

      @@trackstxar k

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

    I'm not sure if it's the titles or the fact you're showing how to do 3D in Scratch that made this series blow up, but you seem to be doing something right!

  • @Eli-7528
    @Eli-7528 2 ปีที่แล้ว +6

    Wow this is amazing!! This is a series of yours that went from a short one to a official one!!

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

    I've watched every single episode of this series without doing anything. For some reason i just find it entertaining. Maybe it's the editing or it's just your shining personality.

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

    This is so fun. I can’t wait for more 3D tutorials. I can’t wait to add jumping, and texture, and so much more! Thx so much griffpatch. I’m sure to take all of this, and make a super cool game out of it. Just you wait.

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

    Oh god texture mapping would be soo cool! Out of the whole raycasting project this is what i wouldnt know AT ALL if i dont watch the tutorial. Keep it up 👍

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

    Fantastic. That depth sorting an entity placement seems like it was a cliff but wow it opens so many possibilities. If I could give a recommendation maybe levels! Specifically for those of us with claustrophobia! If you have any interest in computer science at all this channel is a gold mine!

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

      Yes, thank goodness we got over that... I'm afraid a lot of people may have got stuck on it though :/

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

      Wait
      It's You!

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

      What :0
      Why did u delete ur vids

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

      I miss your videos

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

      please make your 3d engine videos public again, I'm just missing the clipping part

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

    I love when griffpatch uploads its just a good feeling

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

    You could also make, that the Monsters make every few seconds a sound and then put in the Entity Sprite a (set sound to (100-distance to player /1.5))
    Then when the Entity Sprite is far away the sound is quiet but if he is in front of you the sound gets louder

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

      Also animate it

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

      aaaaaaaaaAAAAAAAAAAAAAAAAAAAAAA*AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA*

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

      Yeah but wouldn't it make all the sounds quieter/louder?

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

      how about echo

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

      dude i add a scary sound effect now I'm in the corner of my maze

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

    This is honestly amazing! Hope to see more of this project in the future!

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

    I still love following this and seeing other people projects and it gives me ideas for my 3d game before scratch maze game were not like this thanks to you I can add Enemies you are a life saver

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

    Hello griffpatch! I would like to thank you for doing these scratch tutorials! You helped me a lot and my coding is getting much better! Thank you for everything!

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

      My pleasure - and that's great to hear!

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

    oh my god, i still didn't watch the part four and you already posted another one! amazing griffpatch, thanks for tha great content!

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

      Glad you like them!

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

    I haven't been following this series however after seeing this I am filled with ideas, Thank you.

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

    One step closer to recreating doom in scratch

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

      bro i am recreating doom as scratch school project!

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

      already on it mate!

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

      I was doing wolfenstein

    • @Ben-iz-de-best
      @Ben-iz-de-best ปีที่แล้ว +1

      If it has a screen, it can run doom

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

      One step closer to recreating the backrooms

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

    Every Saturday at around 7:00 (for me) i sit down refreshing griffpatches page so i can see his videos early. I really love your vids!

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

      Every Sunday at around 17:00 (for me) i sit down refreshing griffpatch's page so i can see his videos early. I really love your vids!

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

      And I have notifications on

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

      @@memetech- me2

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

      @@1080GBA me2

    • @qwertyuiop.lkjhgfdsa
      @qwertyuiop.lkjhgfdsa 2 ปีที่แล้ว

      @@Fateh_the_genius mewtwo

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

    OMG this is an awesome episode !! I'm sure this serie will help me a lot to create my scratch projets, but overall to do things that I never think it was possible to do with scratch !
    THANK YOU Griffpatch for all your amazing tutorials ! ❤️🔥😸
    🍋

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

      My pleasure - I bet your project will be amazing!

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

      I'm thankful for Griffpatch!

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

      @@griffpatch I really love your videos and games and it would mean a lot to me if you help fix my issue.for some reason my sprite has been rotated and i dont know how to fix it.

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

    Fantastic work! Love your videos,keep it up, thanks for answering all our scratchy questions!

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

    You are the best Scratcher ever. Your videos really help me in making amazing projects. I have never seen such a good totorial on Scratch ever. So keep going.😊

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

    About the health, you could make each enemy give out a set amount of damage in one hit (e.g. Franks do more damage than Nanos) by using invincibility frames instead of doing a small amount of damage but really fast.

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

      im using this tutorial to make a 3d bullet hell and i made the enemies deal a random amount of damage between 10 and 20 for each hit and for stuff that needs to be more damaging it is between 20 to 30

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

      @@karthkalbi1105 is it more an rpg like undertale
      Or a horror game like jason

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

      @@leroyloanjoe8777 undertale but in 3d

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

      I made that by going to the when I start as a clone in the entities sprite and added "if type = 2 (franks)" then add a "if touching player" "set health by -(how ever much)" (if you want to) wait 1 second. Then delete the if touching entities script from the player sprite.

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

    Great tutorial griffpatch! I have been doing raycasting and similar methods for quite some time now, and I can say you are doing a great job explaining raycasters! Raycasting is extremely tricky at first, leaving many abandoning the subject. However, you make it seem much more simple! What I love most about your tutorials is that they are great for any skill level. There’s always something one can learn from your tutorials, wether they are just starting scratch or have been on for a while. Scratch on!

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

      Yay - Thanks for that :D

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

    3:20 Thank you for showing how to change the wall height like I suggested in the previous video :D

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

    Two ideas:
    1. I'll add a "if DISTANCE to PLAYER" < 50 -----> move ENTITY
    The vision of the enemies is kind of unfair
    2. Franks will move faster and deal more damage

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

      The can see the map lol

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

    I'm loving this series!

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

    Wow. A 5th episode. I remember you said (I think I'll only do 2 episodes of this series (Raycasting). And you're on the 5th, well done! You have a lot of talent for making scratchers like something new. Congratulations again !

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

    Thank you, Griffey patch for this video! You’re video always amazes me!

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

    I did this a bit earlier. But I'm going to see if I can get the enemies to be better for my AI tech demo. For collectibles, they're pretty good. Also, thanks for Sunday!!! I was practically waiting for this to come out XD.
    6:42 When this happened, I went, ah crap. I then spent 2 hours trying to fix that bug. My way of fixing it was also very stupid and inefficient. It involved making a new var called type-entity. Making the type var very useless.

    • @baconboy1800
      @baconboy1800 6 หลายเดือนก่อน +2

      How Do You Fix It Correctly, I've Been Watching This Part And I Can't Figure It Out.

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

      @@baconboy1800 same i cant fix it too have u figured it out?

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

    Good job GraffPatch. Now you just need to add the textures to the walls or even make a cloud multiplayer raycaster.

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

      Ooh, imagine an online fps game in scratch, that could be amazing, and i can't imagine it'd be too tricky to program

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

      @@snufkin8940 I already made a cloud multiplayer raycaster. I can modify it to make an fps game.

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

      That's not a thing for this raycaster probably. You can do it yourself tho

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

      @@preloadingwastaking I already do horizontal line textures. My challenge is to make a full texture.

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

    Yooo griffpatch ty for the tutorial i have been looking forward to these epic features!

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

    griffpatch i love your videos! :D you make my day whenever i need some happiness!

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

    Yoo ep 5, I've been waiting for this one. It was all coming up to this, could you possibly make a it so your y position in the world can change, so you can jump over obstacles?

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

      I made the variable already

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

    Hi Griffpatch. I have a big request. Please continue this series because we have learnt alot and I mean alot new things in scratch. In episode we mainly focused on collisions which helped me to built a very good platformer game in scratch. Well, in episode 2 we learnt how to make rays an raycasting those. Actually I made a 3d maze and it sucked alot and people hated it!!! But I had remodeled it and it is pretty good. When I thought it was the end of the series you uploaded episode 3, in which we learnt how to make and bring a 2d sprite into the 3D world by drawing it. In episode we learnt to raycast through lists. We learnt alot of new things in episode 5 as well. That's why I have a big request that you should continue this series so that can learn more new things.
    Thank you

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

    Hi griffpatch! I have been following this tutorial since day one and then i thought i suggest you something after watching this. There could be something of a map where you click on a map and it will show you the map, but this is a really handy tutorial! Thanks!

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

    I used the health bar from your new tutorial in this! You're so good at scratch

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

    This is great. I'm loving this series and wouldn't at all mind a few more episodes!
    Others have mentioned levels... What about literal levels with a ramp to move up? (Oh, but would Nano and Frank follow you up? 🤔)

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

      I'm also loving it!and i don't know how slopes could work in this,i think we wluld have to get very creative to make something similar.

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

      Height
      well golly gee go look back at the tile-based platformer and do the whole thing in 3D
      or try to express a whole structure by making lists of modelling data

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

      You could only do an elevator, ramps need real 3d

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

      Maybe possible, however would probably be hard due to the fact that our movement is based off of a 2D plane.

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

      TFW
      dpruE

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

    I think it could be wonderful if you can add jumping into the game!
    Super video I love this series!

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

      the way that the raycasting works, means you cant jump or look up and down

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

      @@Hyprst yes I know but it can be a new goal to code in this game

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

      @@Hyprst Griffpatch be like: your underestimating me? (creates looking up and down)

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

      it just existed! check out episode 10!

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

      lol@@Kiwi_guy

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

    Every time I make something, I say, "Thanks to griffpatch." I could never have gotten this far without your videos. Thanks.

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

    Your tutorial is great. I am looking forward for your next one.

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

    this was such an awsome and fantastic episode!

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

    I think doing textures are jumping into the deep-end a bit, so i think implementing jumping would be good (so that we can actually 'jump' into the deep-end)

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

    These tutorials are awesome! The way you're getting Scratch programming to the next level amazes me so much! What if You've made those Entites see you? I mean implement the algorythm You were using for raycasting (in a simplified way - you'll need only 1 ray since they're already looking towards you), but to make them move to you only when they see you? For the rest of the time they should move to the place they've seen you for the last time and start lurking randomly. It would become the next "Thief" game ;)
    PS may I use your tutorals for educational purpouses? I mean - show them to the children at school?

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

    Wow just started making this, on part 3 right now thanks for all the effort

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

    Good - As good as could be expected for Scratch

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

    Here's a list of what I would like to see in future raycasting videos:
    -Y-axis modifications(slopes, stairs,jumping)
    -Textures on the walls
    -diffrent levels
    -diffrent level sizes
    -spawning/despawning
    -angeled enemy costumes
    Cheers :-D

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

      And animations for the character.

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

    Hello! I find my map too detailed with too many walls to move around comfortably in, so I amplified the level by going to the raycaster sprite and going to the (type - x - distance) custom block, and changed the (distance) to (distance * 2). This amplifies the room, making it look like it is bigger than it seems. However, sometimes my entity will glitch through the wall again when I do this. Is there a fix for this?

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

      Ah, you will need to do the same calculation in a few different places I think - It'll need some thought

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

      @@griffpatch I did a lot of tinkering, and here is what I think works.
      1. Instead of multiplying the distance in the type - x - distance custom block in the raycaster, multiply it by two when doing the set distance to (distance * (cos of (direction - camera direct))) block.
      2. When sorting the entity in the if(item(DRAW IDX >/< distance)), multiply the variable distance and distance only by 0.5.
      if(item(DRAW IDX >/< (distance * 0.5)))
      Tell me if it still doesn't work and I will try to find out what else I changed. It has deviated far from the original shown in the video and is hard to compare too.

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

      Also, in the (when I recieve object tick) you change (set vx to (x pos - player x pos)) to (set vx to ((xpos * 2) - (player xpos * 2)))

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

    Thanks for this amazing series!

  • @Jag.Heter.Wienerbrods
    @Jag.Heter.Wienerbrods ปีที่แล้ว

    Grifffpatch, if you see this, i love your videos because it have make me my dream horror game come to real: Lost in rooms! Im really glad about it!

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

    Also, I have found something spooky! In one of the corners of the map a strange entity changing to each costume while flickering appears. I have an idea of what made this happen but I just wanted to point it out.

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

      Is it the original sprite not being hidden?

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

    I think it will be difficult, but do you think, we can make a system, that connects the ends of each line from the walls to it's neighbours, so it doesn't appear round at the ends?
    Love your vids!!!

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

      Yes, it is definitely possible, but certain parts would look kind of weird

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

    Omg I love your games I play them all the time!!

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

    This is awesome!👌😁💕

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

    Crazy thing: I was hoping there would be pathfinding in this episode, where the entities would be able to pursue the player around walls, because I thought it would make it ten times scarier knowing that the enemies aren't just dumbly trying to catch up with you, they're on a collision course.

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

      He has plenty of other tutorials on ai pathfinding that could easily be applied here

    • @mr.killsalot4541
      @mr.killsalot4541 ปีที่แล้ว

      what i did is make the enemy remember where it last saw you and then make the enemy walk there

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

      @@mr.killsalot4541 that's actually not a bad solution. I might come back to this.

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

    Would it be possible to have enemies only chase you when they have a direct line of sight to the player?

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

      Yes, easily. You just draw a line between them and the player in the 2D representation and see if it intersects a wall.

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

      @@whwhwhhwhhhwhdldkjdsnsjsks6544 they could have a little raycaster

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

    THANK YOU SO MUCH FOR THE BUG FIX GRIFFPATCH I KEPT REDOING EPISODE 4 THINKING I DID SOMETHING WRONG. Now I can actually make a 3D GAME!

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

    You are amazing. Thank you for this

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

    Griff, The Scratch engine is made to render 2D "costumes". It isn't efficient with 3d pen rendering. Is there any possible way you can get costumes instead of pen rendering? I know it is almost impossible because in a 3d game, the environment is dynamically being changed all the time and you can't dynamically change a pre-rendered costume.

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

      Just make the enemy's costume top down, and tell the renderer to render it aswell, that's what I did

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

      Sorry - This just has to be done using pen.

    • @MayankKumar-gn1zx
      @MayankKumar-gn1zx 2 ปีที่แล้ว +1

      @@griffpatch actually no. I have seen a few people (including myself * insert grin *) use fish eye effect to replicate 3D...

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

      @@MayankKumar-gn1zx 🐟=3D? Or is it 🐠 that = 3D
      Please explain…

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

      @@MayankKumar-gn1zx I think he means that his 3D game has to be done that way even though it can be done in other games.

  • @kid_studiesGamer-and-tutorials
    @kid_studiesGamer-and-tutorials 2 ปีที่แล้ว

    Thank you so much for the tutorial.
    you are the best griffpatch.

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

    Thanks for adding the enemies chasing you part!

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

    You should add an range and only enemies inside that range can see you

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

      You can use the 'distance to' block to do it

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

      It would help performance as well if Entities would not be rendered if completely behind a wall or too far away as well. :D I'm working on my own project that has a relative same idea as this series but mine is a bit different and more complicated lol.

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

    *Lets Take A Moment How Much Effort He Puts Into His Content For Us ❤*

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

    Thanks for making great tutorials!

  • @redberry27gaming43
    @redberry27gaming43 3 หลายเดือนก่อน

    thx for the tutorial and I also used pathfinding for the enemies

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

    hellow griffpach i am an old scratcher and i really like your tutorials sadly i retired from scratch now i work with gdevelop for games and c++ (for school) when i was 12 there werent many tutorials like yours the only youtuber like you was Scratch tutorials. Hope the best for you

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

    This series is amazing! Great job! I was wondering how you could make isometric games. I also read about non-euclidean geometry and it would be quite mind-bending to put it in a game! Your lemon grab game has that.

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

    Thanks to you I finnaly made my first 3d scratch game!

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

    AMAZING💖💖💖💖💖🥰 Best scratcher ever! Thank you!!

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

    This is amazing. With the coding and other raycastings for a simple coding website for kids

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

    i love your tutorials

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

    The thing i love about griffpatch is that he makes hidden griffpatch emojis and that happends on every video!

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

    I first did not get the enemy costumes changing, but I find I way to fix it. Great video, I cannot wait for episode 6.

    • @Stellar-Insight
      @Stellar-Insight ปีที่แล้ว +1

      Hey, how do you fix it please I’m having the same issue

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

      @@Stellar-Insight Griffpatch made a bug fixing video in this RPG series, there he also fixes the bug! :)

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

      please tell how did you fix that

  • @sbtree-bit
    @sbtree-bit 2 ปีที่แล้ว

    texture mapping, definitely. Maybe adding in viewing different costumes from each end? BTW Love the tutorials!

  • @user-fp7xg3wm8n
    @user-fp7xg3wm8n 2 ปีที่แล้ว

    Now we can make 3d baldi in scratch. Good job griffpatch!!!

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

    You should try to make a clicker game tutorial! I've seen many other people do it, but you're probably the best scratch tutorial maker on youtube! I'd love to see how you would code that.

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

    This is awesome

  • @tvpac-magic6150
    @tvpac-magic6150 ปีที่แล้ว

    i was actually thinking of making this into a scratch 3d movie maker before you mentioned it in the video

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

    This video was made on my birthday!

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

    i love you griffpatch you are very good at scratch

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

    A good tip for setting up the hitbox colours/sizes is to write them into one or several lists for each entity to not have the need to always rewrite the same entity statistics manually.

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

    Texture mapping sounds very cool.

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

    thank you so much for the bug fix solution, my frnak wasnt showing until i read this

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

    These masterpieces won't end

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

    I send lots of love to this series from a fellow Brit, and would love more episodes…i wonder how yo could do:
    - Jumping
    - You/Enemies Flying :O

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

    Cool video, you can implement all the stuff you said at the last of the video, one by one.

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

    great video i really understand this

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

    i dont even do scratch but i still follow this series because its so interesting

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

    Nice tutorial griffpatch! This is probably way beyond the scope of this series and would probably require a major rewrite in the way the engine works but it would be so cool to add verticality to this! It could allow for so many amazing projects (possibly an actual 3d Minecraft clone?)

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

      Yes technically that is possible, the only problem is that although possible the price we pay for adding more levels is a much slower project :(

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

    IS IT JUST ME OR ARE THESE VIDS GETTING BETTER AND BETTER?

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

    Thank you for episode 5! But, I had some big issues in the project, like: entities disappearing right in front of me, nano not changing into frank, wall color is the same on both sides! Yes it is quite a lot but I am thinking about starting everything again. But anyways great video! Don't stop!

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

    I can't wait for e6 of this video

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

    11:34 Very good reference

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

    Wow awesome

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

    You can see sprites over the wall if it is low enough
    You can also make a forest if you make lots of tree sprites that does not move

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

    This 3D Raycasting Really Good.

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

    this is so fun i play some game from you

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

    He sounds more excited each episode :::)))

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

    a cool addition i made was i made a new variable for the wall height and made it a slider so i dont have to go into the code to change the height!

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

    Texture mapping sounds like a really cool idea

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

    Amazing, I love this and it was very helpful! I can't wait to finish my game! Thank you, Griffpatch! I wish I could share it with you, but I can't get my email vertified!!!

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

    Thank man now I can make the BackRoom