Scratch Tile Scrolling Game | Block Breaking With Cool Pickaxes! (#5)

Sdílet
Vložit
  • čas přidán 22. 07. 2024
  • In this Scratch tutorial, I show how to code block breaking into the Tile Scrolling Game. Now your player can use different pickaxes to mine the world!
    🎨 GET THE GAME'S ART: scratch.mit.edu/projects/6921...
    🔗 LINKS: All Videos In This Series: • Scratch Tile Scrolling...
    Scratch Profile Page: scratch.mit.edu/users/ShiftCl...
    Night Ninja Scrolling Platformer: • Scratch | Scrolling Pl...
    Cat Clicker tutorial: • Scratch | Cat Clicker ...
    Tower Defense tutorial: • Scratch | Making a Tow...
    How-to tutorials: • Scratch | How-To Tutor...
    Get Scratch Addons: scratchaddons.com/
    🧾CHAPTERS:
    00:00 - Intro
    00:24 - Project Setup
    02:23 - Item Meta
    08:54 - Selector Movement
    11:04 - Block Breaking
    17:26 - Player Breaking Animation
    21:58 - Pickaxe Animation
    24:11 - How To Add A New Pickaxe
    24:58 - Outro
    ❗ DISCLAIMER:
    This video is family-friendly! Hostile and/or rude comments will not be tolerated!

Komentáře • 231

  • @ShiftClickLearn
    @ShiftClickLearn  Před 2 lety +14

    Thank you so much for watching! This video was another massive one to edit, so I hope you enjoy! 🙂

  • @MonkeJesus
    @MonkeJesus Před 2 lety +4

    Congrats on 12.4k lol, also great vid!

  • @GurjitSingh-fq9iv
    @GurjitSingh-fq9iv Před 2 lety +5

    your tutorials are explained really well. You prove that these things are possible and extreme dedication is put into making the art and the project itself, 10/10.

  • @dotYT1396
    @dotYT1396 Před 2 lety +4

    Ty for the episode! You uploaded faster than last time

  • @Loey13.01
    @Loey13.01 Před 2 lety +4

    Thanks man, i followed your tutorials and managed to create a game similar to Motherload

  • @mrsnappy2924
    @mrsnappy2924 Před 2 lety +4

    This is sooooo cool! It just keeps on getting better and better!!!

  • @bas1cbrick705
    @bas1cbrick705 Před 2 lety +3

    i really excite for the shop menu, as im making a game atm and its involving a pet system, using it would be quite helpful for the whole pet equipping and such.

  • @nicksgames7010
    @nicksgames7010 Před 2 lety +3

    Congrats on 12.4k! U can definitely reach 13k by the end of this month!

    • @ShiftClickLearn
      @ShiftClickLearn  Před 2 lety +2

      Thanks Nicks Games! That would be awesome! ♥

    • @sethplayzminecraft2671
      @sethplayzminecraft2671 Před 2 lety

      @@ShiftClickLearn I know you can do it too, your tutorials are awesome and there's a lot to learn from them!

  • @SIMUNYE
    @SIMUNYE Před 2 lety +4

    THX FOR TEACHING US JOW SIMPLE IT IS TO MAKE A PROJECT BECAUSE OF THAT IT MOTIVATES ME TO DO BETTER THINGS ON SCRATCH TO ANIMATE MAKE GAMES AND EVEN MORE👏😄

  • @Peetu51
    @Peetu51 Před 2 lety +4

    Thank you to tutorial!!!

  • @Super_Cod3r
    @Super_Cod3r Před 2 lety +7

    Can you make faster mining with shovels, axes, picaxes... , for example: dirt - 1 sec with shovel but 2 with picaxe

    • @CrystalKyryn
      @CrystalKyryn Před 2 lety +2

      this mans tryina recreate minecraft

    • @pavlolysan222
      @pavlolysan222 Před 2 lety

      @@CrystalKyryn XD

    • @Mistereee
      @Mistereee Před 2 lety +1

      You can add it yourself

    • @ShiftClickLearn
      @ShiftClickLearn  Před 2 lety

      LOL woah, that would take a lot of code... You could add it in your game.

    • @CrystalKyryn
      @CrystalKyryn Před 2 lety

      couldnt you add a variable called something like "ToolType" and set the tool type in the pickaxes item meta using a number input then use that to make tools with the tool type "Pick" or "Pickaxe" have less speed then the "Shovel" in the tile meta make a variable called "MainToolType" or something and set that to Shovel for dirt and i dont know how you would make it so that the pickaxe is slower then the shovel but thats most of the steps on what you would need to do. i think maybe im dumb and its not that simple

  • @user-nu3dh3lk4g
    @user-nu3dh3lk4g Před 8 měsíci

    halo can you help me for this? why when i check the itemmeta its show only zero

  • @RonicTheEgg
    @RonicTheEgg Před 2 lety +1

    Great! Now I don't need to use if touching mouse pointer and mouse down then replace item tile grid I'd with air anymore!

  • @samuelaugsburger894
    @samuelaugsburger894 Před 2 lety +1

    the "project could not save" message usually appears if your lists are too long or if you have too many, try deleting everything in the lists before saving to make it go away

  • @ericeddie8656
    @ericeddie8656 Před 2 lety +4

    This looks really polished! Can’t wait to get started on it

  • @simonunger1133
    @simonunger1133 Před 2 lety +2

    yay a new Episode!! Best ever

  • @That.ValorantKid
    @That.ValorantKid Před 2 lety +2

    Thank u so much bro!!! If u r reading this than have a good day

  • @TamzidDd
    @TamzidDd Před 2 lety +3

    Do u think in maybe one of the episodes u can make a coordinates system? Where it shows the player what corridinates he is

    • @ShiftClickLearn
      @ShiftClickLearn  Před 2 lety +1

      Good idea! That's already in the game- if you go into the player sprite, the playerTileX and playerTileY variables are the tile coords. :D

  • @levinteziryayo2576
    @levinteziryayo2576 Před měsícem

    Hello! I have a problem, my CurrentMineSpeed is just showing blank. Can you help me?

  • @winman7486
    @winman7486 Před 2 lety +1

    the not saving problem can most times be fixed by opening a new scratch tab logging in then deleting that tab to go back to the tab with the saving problem.

  • @wolpesto
    @wolpesto Před 2 lety +4

    This episdoe was releases way more faster than the last one nice

  • @pandabrody2
    @pandabrody2 Před 2 lety

    there's a bug for me, majority of the time when I click the green flag and the loading bar finishes, the game doesnt load and the loading screen doesnt go away, and it makes scratch lag alot. Can you tell me what happened? this has been going on since episode 3 I think.

    • @ShiftClickLearn
      @ShiftClickLearn  Před 2 lety +1

      Huh, sorry about that! It's really hard to tell what the issue is without seeing your code. The only thing I can think of is if your code in the loading screen sprite has an error. Try re-watching that part from episode 3 and comparing it to your code! :D
      Episode 3: czcams.com/video/fT_whWMqbfs/video.html

  • @xsqmi
    @xsqmi Před 2 lety +1

    does this also work with a pickaxe sprite thats slanted 45 degrees? i drew mine slanted :/

    • @ShiftClickLearn
      @ShiftClickLearn  Před 2 lety

      Hmm, you could change the amount you turn through code! :D

  • @srdarphen4114
    @srdarphen4114 Před 2 lety +1

    awesome, like other videos. my point for this video 10/10.

  • @CrystalKyryn
    @CrystalKyryn Před 2 lety +2

    when i let go of the mouse half way through the animation it keeps going until the end then stops, is this how its supposed to work or did i stuff something up?

    • @CrystalKyryn
      @CrystalKyryn Před 2 lety +1

      also why can i mine bedrock?

    • @ShiftClickLearn
      @ShiftClickLearn  Před 2 lety +2

      Oops, I didn't prevent the player from mining bedrock yet. Also, yeah, the animation will play all the way through!

    • @CrystalKyryn
      @CrystalKyryn Před 2 lety +1

      i made a sapphire pickaxe and sapphire ore, a ruby pickaxe and ruby ore, a topaz pickaxe and a topaz ore and i added obsidian which i will probably change because its minetime is 750, it takes a little bit of time to break like 15 sec the project id is 692581199

    • @CrystalKyryn
      @CrystalKyryn Před 2 lety

      another way you can prevent bedrock from breaking is set the minetime to 999999999999999999999999999999999999999 because nobody is going to wait that long for breaking a single block.

  • @extrem780
    @extrem780 Před 2 lety +1

    I'm not making a mining game, more of a 2d minecraft thing, so out of curiosity, is it possible to add biomes?

    • @ShiftClickLearn
      @ShiftClickLearn  Před 2 lety

      Nice! Yeah, it's possible to add biomes, I just don't know off the top of my head.

    • @extrem780
      @extrem780 Před 2 lety

      @@ShiftClickLearn I assume it's something like a 1 in 100ish chance to change the biome after a new world slice, with a bit of extra code so you don't get absolutely tiny biomes

  • @Im_not_epic
    @Im_not_epic Před 2 lety +3

    I love following this series, but I just have a question. Are we going to make it impossible to break bedrock in the next tutorial? If you answer this question, thanks.

    • @ShiftClickLearn
      @ShiftClickLearn  Před 2 lety +1

      That's awesome, thanks! I will be making bedrock not breakable, but I forgot to do it in the next video. (I recorded it yesterday.) :D

    • @Im_not_epic
      @Im_not_epic Před 2 lety +1

      @@ShiftClickLearn thanks. :)

  • @Rory432
    @Rory432 Před 2 lety +3

    Hey man, I’m not sure if you take requests but if so then I would really like a tutorial on a subway surfers/temple run game. I would really like to see it you would pull it off!

  • @brandonseupersad7916
    @brandonseupersad7916 Před 2 lety +2

    1:36 THE INFINITY PICKAXE

    • @ashwanigupta8106
      @ashwanigupta8106 Před 2 lety +3

      AVENGERS ASSEMBLE !!

    • @ShiftClickLearn
      @ShiftClickLearn  Před 2 lety +2

      *avenger's theme*
      Duhhh duhh dUHh dUHHh DUHHhHHhhHHHh... Duh da duh da da daaaaAAA... DUIHH DAuh DAH adahHH DUHHhHHhhHHhhhhHHhh XD

  • @codeshift615
    @codeshift615 Před 2 lety +1

    yess omg i love thisssss

  • @cyanchilly8729
    @cyanchilly8729 Před 2 lety +1

    epicnessss TIME FOR DESTRUCTION

  • @ashwanigupta8106
    @ashwanigupta8106 Před 2 lety +2

    whats your next episode gonna be about? Backgrounds and lighting or inventory system?

    • @ShiftClickLearn
      @ShiftClickLearn  Před 2 lety +1

      Hmm, probably the lighting and background! (Idk for sure yet.)

    • @ashwanigupta8106
      @ashwanigupta8106 Před 2 lety

      @@ShiftClickLearn and there is a glitch where you can mine bedrock, is that intentional or by mistake

  • @Aihistory-d4c
    @Aihistory-d4c Před 2 lety +2

    This Is cool but can you make it so when you break a block under long grass because it looks weird!!

  • @alpha-zed6698
    @alpha-zed6698 Před 2 lety +2

    When will u post the next part? Can't wait! :D

  • @vozifyvr
    @vozifyvr Před rokem

    Is there any reason why my game incredibly lags whenever I swing my pickaxe?

    • @ShiftClickLearn
      @ShiftClickLearn  Před rokem

      Hmm, did you add an unnecessary piece of code in the swing script?

  • @oiwplayz4770
    @oiwplayz4770 Před 2 lety +1

    I found a bug where it still plays the mining animation when you try to mine air, will you fix that in a later video?

    • @ShiftClickLearn
      @ShiftClickLearn  Před 2 lety

      You can just check "if not (Selected Tile ID = 1) then do the breaking". (ID 1 is the air tile).

    • @oiwplayz4770
      @oiwplayz4770 Před 2 lety

      Thank you!

    • @oiwplayz4770
      @oiwplayz4770 Před 2 lety

      I can also do that for bedrock right?

    • @Proto23115
      @Proto23115 Před 2 lety

      @@oiwplayz4770 yes lol

  • @misterdot6923
    @misterdot6923 Před 2 lety +2

    keep it up!

  • @woutervanduin7415
    @woutervanduin7415 Před 2 lety +2

    Cool

  • @CrystalKyryn
    @CrystalKyryn Před 2 lety +1

    1:49 he is gonna make millions off of that nft lol

  • @sumitbhandari4669
    @sumitbhandari4669 Před 2 lety +1

    Help for some reason at 16:14 when ever i start mining the cursor picks up the tile clone that it was supposed to mine what do i do
    if you see this comment tell me if you want the link of the project thanks
    !!!!!!

    • @ShiftClickLearn
      @ShiftClickLearn  Před 2 lety

      Are you in the editor? It shouldn't do that in fullscreen mode.

    • @sumitbhandari4669
      @sumitbhandari4669 Před 2 lety

      @@ShiftClickLearn I Have Filled every generation custom block with tons of set drag mode not draggable blocks but it still happens should i give you the link?

    • @sumitbhandari4669
      @sumitbhandari4669 Před 2 lety

      ​ I Have Filled every generation custom block with tons of set drag mode not draggable blocks but it still happens should i give you the link?

  • @random-username_
    @random-username_ Před 2 lety +1

    half/below full tiles like grass won’t select at all, selector just skips over them..

    • @ShiftClickLearn
      @ShiftClickLearn  Před 2 lety

      Huh... Did you hover over them (Like the colored part)?

    • @random-username_
      @random-username_ Před 2 lety

      @@ShiftClickLearn only if you hover over the coloured part does it work, otherwise the selector doesn’t select it. still shows the dats for the in variables though

    • @random-username_
      @random-username_ Před 2 lety

      @@ShiftClickLearn it selects only if you hover over the coloured part, but shows data of tile in variables as long as your mouse is over the tile itself, meaning some part is coded to depend on touching the costume rather than being in the tile coords

    • @random-username_
      @random-username_ Před 2 lety

      i know this because you can fix it by turning the sprite to vector (if not vector already) and filling the empty part of the 8x8 square with 0.01 transparency paint (only possible with turbowarp, also decreases sprite quality)

  • @RonicTheEgg
    @RonicTheEgg Před 2 lety

    me when SCL uploads a new video: 0:16

  • @ItsJavasplaysYT
    @ItsJavasplaysYT Před 2 lety +3

    i love your video

  • @MessixRonaldo7and10
    @MessixRonaldo7and10 Před rokem +1

    Haha you are so funny!

  • @robloxolive3261
    @robloxolive3261 Před 2 lety +1

    Can you make it so you can only mine the blocks in front of you, so let’s say there is a block blocking the block you want to mine, so you have to mine the block blocking it to get to the block you want to mine

  • @doodleanimates8049
    @doodleanimates8049 Před 2 lety +4

    WOOOWOO I'M COMMENTING ON SOMEONE ELSES VIDEOOOOO

  • @RishanEdits10
    @RishanEdits10 Před 2 lety +1

    I am having a glith when ever I move the map Dissapears

  • @nowaynogod
    @nowaynogod Před 2 lety +2

    what if you make animals in the game?
    it would be cool to see in Scratch!

  • @persiangamer793
    @persiangamer793 Před 2 lety +1

    wow!

  • @AVeryRandomDude
    @AVeryRandomDude Před 2 lety +1

    LETSS GOOOOO

  • @Rory432
    @Rory432 Před 2 lety +1

    8:47 This usually means somebody else is in your account, snooping around. God knows how they got in there, but it's happened to me alot of times.

    • @ShiftClickLearn
      @ShiftClickLearn  Před 2 lety

      Wait, really? Do I need to change the password or smth?

    • @Rory432
      @Rory432 Před 2 lety

      not sure but you could try it

  • @CrystalKyryn
    @CrystalKyryn Před 2 lety +1

    cool

  • @itscooler_
    @itscooler_ Před 2 lety +1

    Hey can you please help me??? I am followed you on every single step (in episode 3) but the world generation does not work my sky is turning into bedrock and even the rest of the blocks are too. Please reply to my comment and help me. Thank you

    • @ShiftClickLearn
      @ShiftClickLearn  Před 2 lety

      Did you add the wrong ID for the air generation? The ID for the air is 1.

    • @itscooler_
      @itscooler_ Před 2 lety

      @@ShiftClickLearn oh nvm I just messed up the switch costume block. But thanks for replying!

  • @ianbates7364
    @ianbates7364 Před 2 měsíci

    Everyone followed the tutorial except me! Mine has a glitch where I cannot mine with a pick because everything item in the item meta list is 0. Even in the item grabber item meta list! It is also full of 0's! Do you know how to fix the glitch? I tried everything and nothing worked!
    (Edit: Oh! Fixed it!)
    (Second edit: Never mind.)
    (Thid edit: Fixed it!)

  • @erickwong4552
    @erickwong4552 Před 2 lety +1

    could you make bow,sword or some new tool?

  • @penguinpenguin3156
    @penguinpenguin3156 Před 2 lety +2

    I'm trying to make my own animation and still not finished
    but i can soon

  • @lbgameybrownsugarbaby4005

    0:37 it's a breaking English is hard

  • @ramyaradhakrishnan6927

    Please can you send E4 code? I was not able to do it.

  • @hermanzainal2782
    @hermanzainal2782 Před 2 lety +2

    my account just got blocked for STUPID REASONS, I was warning scratchers about scammers bc the guy told me and then scratch BLOCKED me SAYING THAT I SPAMMED, ill say that scratch admins need to learn HOW TO BLOCK PEOPLE CORRECTLY! :(

  • @yellowlightning4417
    @yellowlightning4417 Před 2 lety +2

    Can you teach me how to make 3D games ? (if I did, I'd be following you all the time). Press :(

  • @extrem780
    @extrem780 Před 2 lety

    How long until the next part? No pressure, just asking

  • @RonicTheEgg
    @RonicTheEgg Před 2 lety +1

    "it's a breaking"
    - SCL 2022

  • @thatdragond6452
    @thatdragond6452 Před rokem +1

    WE DON’T TALK ABOUT THE SPOON

  • @Proto23115
    @Proto23115 Před 2 lety +2

    wow so fast

  • @AirLiftingMonkeys
    @AirLiftingMonkeys Před 2 lety +1

    WooHooWooHooWooHooWooHooWooHooWooHooWooHoo!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @danielfeng3991
    @danielfeng3991 Před 2 lety +1

    WOOOOOOOOOOOOOO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! I'M COMMENTING ON SOMEONE'S VIDEO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @haplohealthy5973
    @haplohealthy5973 Před 11 měsíci

    AWSOME PS: don't mind my name

  • @Mertiven
    @Mertiven Před 2 lety +1

    Make this game like Terraria

  • @scratchwithv4467
    @scratchwithv4467 Před 2 lety +1

    Delete Everything from the lists before trying to save

  • @-origamifigures-4229
    @-origamifigures-4229 Před rokem

    I fixed it!

  • @maciekmaliszewski568
    @maciekmaliszewski568 Před 2 lety +1

    WEEEEEEEEEEEEEEEEEEEEEEEEE XD

  • @annaabinales1632
    @annaabinales1632 Před 2 lety +1

    We're no strangers to love
    You know the rules and so do I
    A full commitment's what I'm thinking of
    You wouldn't get this from any other guy
    I just wanna tell you how I'm feeling
    Gotta make you understand
    Never gonna give you up
    Never gonna let you down
    Never gonna run around and desert you
    Never gonna make you cry
    Never gonna say goodbye
    Never gonna tell a lie and hurt you
    We've known each other for so long
    Your heart's been aching, but
    You're too shy to say it
    Inside, we both know what's been going on
    We know the game and we're gonna play it
    And if you ask me how I'm feeling
    Don't tell me you're too blind to see
    Never gonna give you up
    Never gonna let you down
    Never gonna run around and desert you
    Never gonna make you cry
    Never gonna say goodbye
    Never gonna tell a lie and hurt you
    Never gonna give you up
    Never gonna let you down
    Never gonna run around and desert you
    Never gonna make you cry
    Never gonna say goodbye
    Never gonna tell a lie and hurt you
    (Ooh, give you up)
    (Ooh, give you up)
    Never gonna give, never gonna give
    (Give you up)
    Never gonna give, never gonna give
    (Give you up)
    We've known each other for so long
    Your heart's been aching, but
    You're too shy to say it
    Inside, we both know what's been going on
    We know the game and we're gonna play it
    I just wanna tell you how I'm feeling
    Gotta make you understand
    Never gonna give you up
    Never gonna let you down
    Never gonna run around and desert you
    Never gonna make you cry
    Never gonna say goodbye
    Never gonna tell a lie and hurt you
    Never gonna give you up
    Never gonna let you down
    Never gonna run around and desert you
    Never gonna make you cry
    Never gonna say goodbye
    Never gonna tell a lie and hurt you
    Never gonna give you up
    Never gonna let you down
    Never gonna run around and desert you
    Never gonna make you cry
    Never gonna say goodbye
    Never gonna tell a lie and hurt you

  • @amos9g
    @amos9g Před 2 lety +1

    Wowww I’m commenting on my own videoooo

  • @hossambarakat
    @hossambarakat Před 2 lety +1

    I Saw The Other One Its a Spoon

  • @sethplayzminecraft2671
    @sethplayzminecraft2671 Před 2 lety +3

    YOOO FIRST COMMENT

    • @ShiftClickLearn
      @ShiftClickLearn  Před 2 lety +2

      YESS! Awesome!

    • @annaabinales1632
      @annaabinales1632 Před 2 lety +1

      U for ima 1st comment

    • @sethplayzminecraft2671
      @sethplayzminecraft2671 Před 2 lety

      @@ShiftClickLearn Thanks I love your vids SOOOOOO MUCH!!! I can't wait for episode 6!!!!!!!

    • @sethplayzminecraft2671
      @sethplayzminecraft2671 Před 2 lety

      @@ShiftClickLearn Thanks, and great tutorial, but I have a problem... I can break bedrock. Could you fix that in the next episode?

  • @peterngo3397
    @peterngo3397 Před 2 lety +1

    Can you give my a gameplay?

  • @maciekmaliszewski568
    @maciekmaliszewski568 Před 2 lety

    WHY JUST ON 3AM ITS 8AM

  • @yourboyfriend5581
    @yourboyfriend5581 Před 2 lety +1

    bro i can mine with a shiftclicklearn 😃

  • @verglas_hydra
    @verglas_hydra Před 2 lety +1

    Pick the best pick lol

  • @centycebra4447
    @centycebra4447 Před 2 lety +1

    i can um break bedrock

  • @RonicTheEgg
    @RonicTheEgg Před 2 lety

    hmmm
    milk.

  • @jirenceigtiben9135
    @jirenceigtiben9135 Před 2 lety

    I can still break bedrock :(

    • @Proto23115
      @Proto23115 Před 2 lety +1

      just say if fhen the block mine speed = to null dont mine

    • @ShiftClickLearn
      @ShiftClickLearn  Před 2 lety

      I haven't fixed that yet!

  • @-origamifigures-4229
    @-origamifigures-4229 Před rokem +1

    Sry again for bothering you

  • @technicaltutorial601
    @technicaltutorial601 Před rokem

    dont make these game

  • @zwlw
    @zwlw Před 2 lety +3

    Hey! I'm from the first vid in this series I said something about a similar game I was making.
    It's out! I'd: /703864870
    It's unfinished though and I don't think I'll finish it anytime soon

    • @ShiftClickLearn
      @ShiftClickLearn  Před 2 lety +1

      Hiya! Oooh, I'll make sure to check it out! :D

    • @zwlw
      @zwlw Před 2 lety

      @@ShiftClickLearn btw I highly suggest using turbowarp