Unlock 3D Mouse Controls in Scratch! 🤩🐭 - Raycasting E8 Tutorial

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

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

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

    Hey Guys! - CLICK LIKE 👍 if you want to see JUMPING, or the ability to FIRE your laser/weapon!💥

  • @LiIGremlin
    @LiIGremlin ปีที่แล้ว +203

    when in school we were taught to program simple animations in scratch, i could have never imagined anything like this being possible. The resiliance and ingenuity of the scratch community is incredible.

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

      If I weren't to type "Scratch 3D" back in the day I'd never discover Griffpatch

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

      Well actually a lot of things on scratch no the games but the way they work are actually similar to games in history and scratch is just working its way up to present time, it porbaky won't get there but it is trying to climb up there, and it might be able too if scratch team acknowledges things like turbowarp.

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

      My (old) school didn't let us do scratch until I've been a scratcher for 1.5 years

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

      @@cosmocode75 nah you'd discover someday

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

      low quality 3D is incredible?

  • @gudfishpoop3188
    @gudfishpoop3188 ปีที่แล้ว +47

    It's so amazing how a simple scratch game can turn into a masterpiece

  • @kyubi7166
    @kyubi7166 ปีที่แล้ว +22

    Despite the fact I haven't used Scratch in years now I still like to watch your tutorials

  • @NITRO_PRO
    @NITRO_PRO ปีที่แล้ว +70

    Griffpatch is probably one of the only people who makes sure Scratchers are happy by walking them through in developing their favorite type of games, which make them more confident scratchers.

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

      That's awesome :)

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

      I agree

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

      so true

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

      @@griffpatch 7890

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

      the scanning process always gets in the way of starting the game. how do i fix it? @@griffpatch

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

    Griffpatch: Another episode in our Raycasting series!!
    Me: *opens my 8-month-old scratch project*

  • @i_dunnoman.
    @i_dunnoman. ปีที่แล้ว +5

    When the world needed it most, the raycasting series came back.

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

    You just amaze me. The fact someone has been using Scratch for that long, and chooses to make tutorials on it? That you'd use your knowledge of Scratch to help other people? Thank you, griffpatch.

  • @1080GBA_SC
    @1080GBA_SC ปีที่แล้ว +9

    Finally! Episode 8 is out! Can't wait to learn this!

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

    Woah, man, I respect your ability to work non-stop even if it makes you discomfortable. Get good soon, love ya💓

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

    I can’t believe how simple you made looking up and down! You forever continue to perfectly make things dead fast and efficient

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

    No way I started making the raycasting project a month ago and this came in clutch, thank you griffpatch :D

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

    I thought this series was never coming back! I like it now that it's here :)

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

      :0 hart

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

    After almost a year of no raycasting videos, there back I'm so glad

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

    Your content just keeps getting better and better!

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

    I saw this video recomended on your channel and realized I wanted to support you, and I wanted to have this. Keep up the good work.

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

      Thanks so much, I appreciate your support! Hope you enjoyed the video

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

    I was gonna think the series will be in it's rocks, but clearly it is revived! 🎉

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

    Me and my freinds in 6th grade would always play your scratch games whenever the opportunity came. Thanks for such a memorable year.

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

    Let's take a moment to admire his dedication. He has motion sickness, yet he keeps uploading 3d tutorials. Respect.

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

    Can't wait for the next episode. You are really fun to watch and learn something every time!

  • @backupstorage937
    @backupstorage937 ปีที่แล้ว +141

    I clicked on this faster than the April fools scratch cat block extension on scratch add-ons.

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

    Imagine how insane this could turn out in TurboWarp! With a bit of tweaking we could even get widescreen (640x320 canvas). Scratch is the programming language that I least expected to see a 3D engine in, nevermind one made almost solely with a pen! Great video Griffpatch, this is such a cool series that I never could have expected to get this far. You are one of the most underrated TH-camrs that I've ever seen and the fact that you haven't reached 1M subscribers yet is mindboggling.
    Edit: I tried it out in TurboWarp and my 7 year old 2-in-1 monitor that uses HDD could run it at 4 resolution in 60 FPS with absolutely no lag. Imagine how low the resolution can get on an actually good computer!
    Edit 2: I managed to get widescreen working and it's fabulous.

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

      well.... the lower the "RES" variable is, the higher the actual resolution is, i believe

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

      @@jjsanimations That's what I mean

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

    Cool video! When you add jumps and so that you can jump over low walls (I even know how to do this, just turn off the collision with the wall if you are higher than it)
    And to make it generally cool, you can add non-Euclidean portals!

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

      I know how to program crouching under walls, but I can't figure out how to make a wall draw from top to mid-way.

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

    wow, i was excited for an update on the 3d raycasting and just can't wait for the animated walls and floor reflections!

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

    I had another idea for the backdrop...I coded a quick script in python which gives me an image for the environment at every pixel (480, 240 for up and 240 for down) with the labels being the camera Y variable. I then created a new sprite and told it to switch to backdrop(CAMERA_Y).

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

    I’m just crying sitting down here on this couch sick. I can’t believe you’ve done this. Keep up the good work!

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

    I actually programmed a more realistic looking up and down than just moving everything up and down, I pretty much moved the columns more or less depending on how far away they were and the offset them to keep them in the center of the screen

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

      That is more like how you move up and down. But when you rotate, nothing should move in relation to another. no parallax

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

      @@griffpatch I.E jumping

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

    I was waiting for this too much, and it's here! :D

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

    Oh yes! Finally Jumping! Thanks Griffpatch!

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

      No jumping yet... But we'll add that shortly if there's demand :) - Just needs enough loves on this video to keep the series going!

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

      @@griffpatch Sure I'll love the video! You deserve those likes!

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

    When I first began coding on scratch I thought 3d was impossible but you've proven me wrong bravo I can't wait for jumping and shooting!!!

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

    This series is gold!

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

      Omg it’s you!
      I missed you

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

      FUNUT????

    • @AJ-BS
      @AJ-BS ปีที่แล้ว

      Lets goo :D

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

    you absolutely break the limits of scratch, we need more smart coders like you!

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

      Would I qualify? I have added a lot onto griffpatch's tile scrolling series, like a world map, game pausing, and even challenges to change the gameplay.

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

    You should make an option in Scratch Tools where you can lock the mouse cursor in the center of the screen to make it easier for people to play FPS games. Would that be possible?

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

      It's already possible using TurboWarp - The section where I show it locked is actually running in TurboWarp doing just that. I plan to make an episode to show that off. I really wish Scratch would consider adding this kind of thing, but I guess they don't promote 3d 1st person shooters lol :D

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

      @@griffpatch o

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

      I don't think griffpatch develops for ScratchTools

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

      @@griffpatch Awesome!

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

      hello Jackson

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

    It's crazy that something like this is possible in scratch, it's a 2d game engine and yet the community still finds a way

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

    Can you add animated walls next ? It can be awesome !!
    What I want the most is all the text engine serie and add cinematics to the RPG serie ! But I know that it take you time, you as sure take your time :D

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

      Just put a variable in the texture code which constantly changes every frame, and each costume is a frame of a gif

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

    PLEASE ADD JUMPING AND LASERS/SHOOTING PROJECTILES! You make AMAZING tutorials and I thank you so much! This really helps me with school because we are learning how to code! Thank yoouuuuuuuuuu!!!😀

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

    I would love to see if it would be possible to add a texture to the floor and ceiling that would actually move and other things like doors you can interact with or other 3d objects. With this project I feel like anything is possible lol.

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

    I love your videos, i don't know how but your scratch coding knowledge is unbelievable! I watched all of your videos on the playlist, Unfortunately I do not have access to scratch 3, and some of your ideas don't work on scratch 2, but still your my best scratcher!

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

    and I thought there wouldn't be another episode of Raycasting. Happily I was wrong 😁

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

    Glad to see the tutorial is being continued! Maybe we can get floor and roof textures nextvor maybe even putting walls at different heights?

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

    Just started learning python, and your tutorials are great for that too

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

      Yes! They should transfer easily enough :D

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

      I’m planning on learning Python soon enough! So this is great news! 🙂

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

    Thanks Griffpatch! These tutorials are very helpful. It would be cool if you could make a tutorial on roofs/roof heights and the ability to look straight up and around. I would also recommend reflections.

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

    This proves scratch is more than just a block-building coding language for kids

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

    Great Video! BTW, just did this, if you use TurboWarp there is a feature for mouselock as an extension!
    (Future Ideas: Death Screen, Floor and Ceiling(if possible), animated sprites, healing item/weapon.)

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

    i respect you for going out of your way just to teach people for free

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

      omg you liked it i am going to pass out

  • @Money-The-Dollar
    @Money-The-Dollar ปีที่แล้ว +1

    It did take long for this tutorial to come out but I can agree it was worth the wait

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

    for anyone wanting a different style of turning (like the turning in 1st person games like minecraft), heres what you do:
    in player tick, trash your original turn by mouse x degrees block (or make a settings which i already had and make a variable that lets you choose if you want to use this new style or the one in this video). first, make a variable called "old mouse x". in a forever loop, wait 0 seconds, then set old mouse x to mouse x. now, back to your player tick, put instead of mouse x / 60, mouse x - old mouse x. you can divide it by 2 or a sensitivity variable that is also in your settings. and there you go! very simple. you can mess with the sensitivity all you want but yeah.
    :]

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

    Can’t wait for the gun and jumping, keep up the truly amazing videos!
    I was also thinking about enemies that follow you, if even possible, could you make a video on that?

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

    THANK YOU FOR CONTINUING THE SERIES!!!!!!

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

    Woah I was off of my computer for just a little and you already shared this vid for everyone! So cool!

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

    this looks awesome! looking up and down and the color banding kinda remind me of the early doom games

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

    THANK YOU THANK YOU THANK YOU, ive been waiting SOOOOOOO long and i tried to do this on my own but it kinda sucked lol but now it finally works

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

    This is really amazing. I was trying to find a way to turn without the arrow keys cuz using two hands is a bother.

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

    The long-awaited mouse controls!!! I already made them, but like always, griffpatch's way is better than any other way! Also for mouse lock, you can use turbowarp (not the turbowarp mouse lock extension, but the mouse lock experiment link. TH-cam for some reason won't let me post, but it should be easy to find ) 7:31 dam that is trippy! Imagine working on your 3D engine when you see that.

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

    Somehow this made the game look so much higher quality! It used to look like a scratch game that was really impressive but still a scratch game. Now it straight up looks like a REALLY smooth n64 game.

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

      Doesn't it just! :D

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

    I would love to see textured floors or a laser next episode, good job griffpatch!

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

      just simply maker you own floor but he did say hes gonna add realistic floors and animations for walls. in a episoder

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

    Something I think would be cool would be enemy directions. For example, the entities would have something like a visual and only chase you if they see.

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

      add raycasters to all the enemies, and if they touch you: chase

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

    i instantly liked the video i had been waiting for this for 6 months 👍👍

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

    After the Jumping/Weapon tutorial, it would be great to see a tutorial on improving enemy AI and implementing 8-directional sprites. More advanced enemy behavior and animations, such as getting hit and defeated, would add depth to the game. Additionally, having 8-directional 4-frame walk animations for enemies would enhance the visual experience. Your tutorials are very helpful, and these additions would be awesome. Thanks!

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

    It’s been 8 months!! I’m so excited to do this

  • @Super-qr7wm
    @Super-qr7wm ปีที่แล้ว

    theres an extension that allows mouse control in scratch iirc, so if your willing to go outside the tutorial you could get a better looking project for it, however it does extend project load time.

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

    FINALLY IVE BEEN WAITING FOR THIS FOREVER!!

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

    Before this video I made my own Mouse turning system but it's easy to see that Griffpatch saved the day!👍

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

    This series must go on!!! :D

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

    that doomlike 3d multiplayer game you made was really interesting, you think you could make a video about how it was made? if not, that's fine

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

    Can't wait to use the gamepad extension so I can play on controller! On the topic, could you maybe to a tutorial on just that?

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

      i have the gamepad extension

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

    SO EXCITED FOR E9

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

    I thought this series is dead!
    But it is not! I wait for this so long and it's worth.

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

      I'd lost a lot of viewers towards the end of last episode... so gave it a break - Let's see if we can revive it now

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

    Yes, finally another episode.

  • @Weegie-Gun
    @Weegie-Gun 2 หลายเดือนก่อน

    Thanks Griffpatch, this video saved my life👍

  • @B1689-k4h
    @B1689-k4h ปีที่แล้ว +1

    at 9:30 there is a way to pull this off, but it would need a mod that can add custom extensions, maybe this could go into the scratch addons addon.

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

    wow that's really nice seeing griffpatch still active

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

    I wish that you would make the animated textures episode. That seemed so cool.

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

    I made a middle band where as long as you weren't too far from the center of the screen, you wouldn't turn. It took a little pressure off when I didn't have to position my mouse as precisely as I would otherwise

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

    OH MY GOD! IM DEFINITELY MAKING THIS RIGHT NOW! AND IF THERE IS THE SHOTTING AND JUMPING, THOSE TOO! I CAN MAKE A WHOLE FPS GAME WITH THIS!

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

    We went from Doom, straight to Quake. Very cool

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

    Oh my god I f*cking love you so much, thank you for continue this serie of tutorials, you're so great Griffpatch!!

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

      Glad you like them!

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

    oh how far weve gotten. Man I still remember the first episode LOVE YOUR VIDS GRIFFPATCH!

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

    I have an idea: what if, the closer the player is to an enemy, the louder will be the sound that an enemy will make? I feel like that would improve the gameplay so much!

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

    Yessss, more raycasting tutorials

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

      Yes Indeed! :) - Hope you enjoy

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

    go to 14:03 playback speed 0.25 and listen to the amazing masterpiece

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

    OMG THIS IS INCREDIBLE ❤❤ AND IT’S ONLY 15 MINUTES!!! NO WAY!!!

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

    Whoa! I did not expect it to be this short

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

    finally a new 3D tutorials

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

    Your videos are simply mind blowing 🤯 !!!

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

    That will be cool, I'm excited when griffpatch creates a video of jumping and laser gun shooting.

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

    I’m just barely understanding what’s going on, this is awesome!

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

    Griffpatch, can you give a tutorial on detecting if one clone is touching another clone, but it also detects which costume both of the clones have, and can delete both clones, but no other clones?
    (I want to make Little Alchemy in Scratch)

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

    Pro tip: you can size something to be smaller and in center at all times by holding alt. Corner sizing.

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

    It'S FINALLY HERE!

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

    If this goes on, this man will code Cyperpunk 2077 in scratch

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

    it was made seconds ago and there are already so many comments, also ur tutorials are the best. Edit= Ty for the heart!!

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

    we can finnaly locate our old project! OMGGG

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

    griffpatch you are AWESOME I loVe your vids
    thnx for teaching me how to code I love making games
    And you teach PERFECTLY.

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

    Hello griffpatch! I just wanted to say that you are a huge inspiration for my scratch projects, and I have some ideas TOO for episode 10! Maybe you could add sounds to the entity's / monsters? Or maybe you could add larger maps! Anyways thank you griffpatch for teaching me this tutorial Bye!

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

    Appreciate the DOOM sound effect at 1:21!

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

    i like the music you picked for the start

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

      Oh thanks :) something a bit different

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

    Just when I was looking for more stuff to this tutorial this comes up XD

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

    This is really helpful! Thank you so much griffpatch!

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

    This is a really good tutorial. How would you increase the height of the walls if you were making, let's say, a city?