Scratch Tile Scrolling Game | Inventory UI (#8)

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 22. 07. 2024
  • In this Scratch tutorial, I show how to finish the inventory system for the Tile Scrolling game!
    🎹 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:29 - Project Setup
    01:44 - Setting Up Inventory UI
    06:50 - Number Counter For Item Amount
    11:15 - Refreshing The Inventory
    14:39 - Selector Scrolling Thing
    19:10 - Inventory Overflow Fix
    21:06 - Outro
    ❗ DISCLAIMER:
    This video is family-friendly! Hostile and/or rude comments will not be tolerated!

Komentáƙe • 181

  • @ShiftClickLearn
    @ShiftClickLearn  Pƙed 2 lety +18

    Woowwww we're already to episode 8- That's crazy! Thank you all so much for watching! :D

  • @Iminsanealr
    @Iminsanealr Pƙed 2 lety +10

    This is probably the best series you have ever done :D can’t wait to see the finished project!

  • @Wallee580
    @Wallee580 Pƙed 2 lety +5

    Wow what a great inventory system!
    I can't wait to see how far you go with this game :)

  • @camd0ge33
    @camd0ge33 Pƙed 2 lety +2

    Awesome video! Thank you so much for doing this series!

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

    I can't wait to finish this! Amazing vid! What's next?

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

      Block placing, particles, and a few other random things like that. :)

  • @simonunger1133
    @simonunger1133 Pƙed 2 lety +3

    yaaay episode 8 EPIC

  • @moonsunlight-lr6kl
    @moonsunlight-lr6kl Pƙed 2 lety +5

    Wow, this is cool, i fought it would take a lonnnnggg time to make the inventory UI but i was not that long :D

  • @tapmakesgames1104
    @tapmakesgames1104 Pƙed 2 lety +3

    Wow... this series is Griffpatch level stuff! Keep up the good work! :D

  • @penguinpenguin3156
    @penguinpenguin3156 Pƙed 2 lety +9

    we need a day and night cycle it will be so cool

    • @ShiftClickLearn
      @ShiftClickLearn  Pƙed 2 lety +4

      That would be so cool!

    • @lilkangarooo
      @lilkangarooo Pƙed rokem +1

      Try making it to where after a certain amount of time all the sprites get darker, and then lighter. That might sell the illusion.

  • @sethplayzminecraft2671
    @sethplayzminecraft2671 Pƙed 2 lety +2

    YOU HIT 14K SUBS!!!!!!!!!!!!! LET'S GOOOO!!!!

  • @SquidCoder
    @SquidCoder Pƙed 2 lety +4

    Using a vertical bar for custom blocks can look a bit better, as in [Scroll | Amount : (amountVar)] The vertical bar is above the backslash ( hold shift + \ ) Awesome stuff btw. So glad I can enjoy you and Griffpatch

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

      Thanks for the tip! Glad you enjoyed. :D

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

      I do that to

    • @SquidCoder
      @SquidCoder Pƙed 2 lety +1

      @@ShiftClickLearn Just resubbed bc yt un subbed me ig. Will be watching your great vids from now :D
      PS. Thx for the heart mate.

  • @anasoares6476
    @anasoares6476 Pƙed 2 lety +3

    also every video you publish produces...... THE HAPPY CHEMICAL. :)

  • @hurnal6198
    @hurnal6198 Pƙed 2 lety +3

    I'm excited to see that much-needed Ui at the bottom! I wonder how much longer until the shopkeeper will exist đŸ€”?

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

      sooOON

    • @hurnal6198
      @hurnal6198 Pƙed 2 lety +1

      @@ShiftClickLearn Don't worry I'm not rushing you I know these take a while xD.

  • @musical_mitchell
    @musical_mitchell Pƙed 2 lety +2

    idk what scratch tutorials 2 try since u made so much

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

      Do any tutorial you want! :D

    • @CrystalKyryn
      @CrystalKyryn Pƙed 2 lety

      im trying to make a shoot em up game reversed. you are the boss and little ai planes move around the bottom of the screen and shoot bullets at you, (you can also upgrade your boss to make him look cooler.) and better yet im using my old black grey and white vector art style. (its what i started making when i started scratch)

  • @goboticos
    @goboticos Pƙed 2 lety +3

    You are awsome, I have 32 years but I wanna be like you. XD

  • @AbleslayerCollectives
    @AbleslayerCollectives Pƙed 3 měsĂ­ci

    best scratch youtuber

  • @TamzidDd
    @TamzidDd Pƙed 2 lety +5

    Yo this is getting good, but I do think that there needs to be more inventory space when you press e or something and also a limit to how many of the blocks you obtain into your inventory instead of having 1000 blocks of one block in one slot :) Cannot wait for the next episode, I hope it comes tomorrow or 2 days

  • @cassandrakimmel9600
    @cassandrakimmel9600 Pƙed rokem

    When i refresh the inventory and i have different amounts of different item then all the numbers showing the amounts go to the middle any way on how to fix that?

  • @sethplayzminecraft2671
    @sethplayzminecraft2671 Pƙed 2 lety +2

    You're SOOOOOOO good at typing LOL đŸ€Ł

  • @Loliloliloli348
    @Loliloliloli348 Pƙed 2 lety +2

    After 1 year:1 million subs

  • @ContentGaming1
    @ContentGaming1 Pƙed rokem +1

    You can put a wait until not up arrow then scroll 1 if you cant scroll

  • @DHSBros
    @DHSBros Pƙed 2 lety +2

    Really cool

  • @imnot4chriss
    @imnot4chriss Pƙed rokem

    im making a local multiplayer game and making 4 different inventorys and still managing to fit it all on the screen is difficult

  • @scratchwithv4467
    @scratchwithv4467 Pƙed 2 lety +2

    What is the next vid going to be about? Im really excited!

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

      Block placing, particles, and a few other random things. :D

  • @Iliterallyhave0life
    @Iliterallyhave0life Pƙed 2 lety +3

    oh mah god its gettin epic

  • @Treewha998
    @Treewha998 Pƙed rokem

    wuts the i varriable and the message at the start

  • @redcraft612
    @redcraft612 Pƙed rokem

    same problem as avis, when i do brodcast refresh inventory the numbers that should be shown get set to the "null" costume.

  • @Tpg037
    @Tpg037 Pƙed rokem

    Myy clones get deleted and dosent show the number can someone help me?

  • @macboygamer
    @macboygamer Pƙed 2 lety +1

    Great video! One question... When I was testing at 17:09, each inventory slot had the number 1 already there. But when I collected something the count for that slot would stay as 1 until I got more of that thing. I tried so much but the numbers just won't go away. Please help.

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

      Hmmm, did you try deleting the letter clones in the very beginning?

    • @macboygamer
      @macboygamer Pƙed 2 lety

      @@ShiftClickLearn That didn't work. And I found another mistake I made. When I collect an item, the selector disapears so i can no longer select anything.

  • @johndoyle1588
    @johndoyle1588 Pƙed 2 lety +3

    Whenever I try and pick up an item it has extreme lag to the point where the game is frozen for a second. Is this just my potato computer or is there something I can do to fix this? Great series though!

    • @ShiftClickLearn
      @ShiftClickLearn  Pƙed 2 lety

      Thanks! Is your inventory really big or something? That shouldn't happen...

  • @juniorstar7511
    @juniorstar7511 Pƙed 2 lety +1

    When a number in the inventory becomes double digit number, the second number comes out of the frame of the particular item slot. Is there a way to make the number on the top right of the slot so it stays in the frame.

    • @juniorstar7511
      @juniorstar7511 Pƙed 2 lety +1

      Great video anyways

    • @ShiftClickLearn
      @ShiftClickLearn  Pƙed 2 lety

      Yeah, you'd basically have to print the letters from right to left, instead of left to right. It'd take a bit of modifying the existing code. Thanks! :D

  • @briangao3381
    @briangao3381 Pƙed 2 lety +2

    Cool

  • @WeepingAngel98ihbbh
    @WeepingAngel98ihbbh Pƙed rokem +1

    How would you make multiple working rows of the inventory.

    • @ShiftClickLearn
      @ShiftClickLearn  Pƙed rokem

      You'd have to increase the slot count variable and make the inventory wrap down (or up) so it doesn't just get wider horizontally. Here's some pseudo code:
      CREATE SLOTS FUNCTION {
      create slot
      change currentSlotNumberCreated by 1
      change x by 50
      if currentSlotNumberCreated > 4 {
      change y by 50
      }
      }

    • @WeepingAngel98ihbbh
      @WeepingAngel98ihbbh Pƙed rokem

      No success. đŸ˜„

  • @stick5530
    @stick5530 Pƙed 2 lety

    This is a great series but for my inventory when I pick up something the first slot changes to the correct costume but the numbers will always go to the middle slot and will stack and I followed the tutorial twice to see if I did something wrong and it’s the same so what do I do?

    • @ShiftClickLearn
      @ShiftClickLearn  Pƙed rokem

      Hmm, it's really hard to tell you what's wrong without seeing your code... Maybe try checking that you set all of your variables to for this sprite only/ for all sprites correctly?

    • @stick5530
      @stick5530 Pƙed rokem

      @@ShiftClickLearn I just checked and they are all correct so I don’t know what to do know if you have a discord account I could send screenshots of my code

  • @hellow123
    @hellow123 Pƙed rokem +1

    I found an odd bug, not sure if this is fixed in #9 or not, but if you click around during the inital loading screen, some tile drops will appear and upon collecting them after the loading screen finishes, you obtain null in your inventory. Although, this may just be a bug on my end.

    • @ShiftClickLearn
      @ShiftClickLearn  Pƙed rokem

      Hmm.. Yeah that should be possible! I need to look into that.

  • @Paul-ch1eo
    @Paul-ch1eo Pƙed 2 lety +2

    Hi ShifltClickLearn, I need help, do you know why my trees are flying? I can break wood but I can't see it.

    • @ShiftClickLearn
      @ShiftClickLearn  Pƙed 2 lety +4

      What do you mean? The trees are floating for you?

    • @Paul-ch1eo
      @Paul-ch1eo Pƙed 2 lety

      @@ShiftClickLearn Yes ( sorry, my english is bad, it's because i'm not english )

  • @crazytlingit79
    @crazytlingit79 Pƙed rokem

    i feel like im one of the only people that are having issues with things but, when ever I do the "broadcast refresh inventory and wait" thing the numbers that should be shown get set to the "null" costume. I'll try to figure this out on my own later but I probably wont be able too within 3 years...

  • @Lukex305
    @Lukex305 Pƙed 2 lety +3

    6:35
    If you want to make minecraft i found this to be perfect
    set _slotCount to 9
    CreateSlot:Spacing:43
    and find DefineSetCostumeSlot
    and set size to 300%
    NP if i helped somebody

  • @real_kryzz
    @real_kryzz Pƙed 2 lety +2

    niceee

  • @rexcreates6684
    @rexcreates6684 Pƙed 2 lety +2

    "Oh Wow. I can type so good.*
    - Owen 2022

  • @kugenthiradassivapragasam4884

    woah!

  • @AbleslayerCollectives
    @AbleslayerCollectives Pƙed 3 měsĂ­ci

    error the first slot of inventory isn’t filling up

  • @Lukex305
    @Lukex305 Pƙed 2 lety +2

    Make water generation,big mountians,lava which kills you (not instantly),Crafting,Main Menu,Make that you can savve worlds,Extra inventory if you press "e",health bar,hunger bar,exp bar,night and day cycle,animals (pigs,cows,chickens...),mobs (zombies,skeletons,spiders...),fall damage (from higher place you fall you take more damage),Death screen...
    Its basiclly minecraft.

    • @ShiftClickLearn
      @ShiftClickLearn  Pƙed 2 lety

      Wow that's a lot!

    • @Lukex305
      @Lukex305 Pƙed 2 lety +1

      @@ShiftClickLearn You can split it in more videos not just 1.

  • @ianbates7364
    @ianbates7364 Pƙed 2 měsĂ­ci

    By the way, I used my own custom art for all except the parallaxing background.

  • @nithinr3712
    @nithinr3712 Pƙed 2 lety +2

    I did everything as you said till 14:04 but then when I mine something it shows only the number of items I mined, the costume is not changing. Please help me!!!

    • @nithinr3712
      @nithinr3712 Pƙed 2 lety

      bro Please reply

    • @nithinr3712
      @nithinr3712 Pƙed 2 lety +1

      I have been following this series for so long if I stop now it would be very bad. Please see my question and please reply!!!!!!!!!!!!!!!!!

    • @ShiftClickLearn
      @ShiftClickLearn  Pƙed 2 lety

      Hey, sorry to hear that. Did you name all of your inventory slot costumes correctly? They need to match the IDs in the item meta.

    • @iaminvisible.2433
      @iaminvisible.2433 Pƙed rokem

      I had the same problem and all I did was remove the not operator that has 'if costume number = decodedValue' in it in the SetCostumeSlot custom block.

  • @tiziostranoo
    @tiziostranoo Pƙed 2 lety +2

    Hi ShiftClickLearn. I have an idea: can you do extra episodes where you explain how to make a crafting mechanism, furnaces, monsters, animals, lava and water, and even other dimensions?

    • @scratchwithv4467
      @scratchwithv4467 Pƙed 2 lety

      Im going to do some of that

    • @tiziostranoo
      @tiziostranoo Pƙed 2 lety

      @@scratchwithv4467 videos on your Channel about that?

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

      Hiya! That'd be awesome, but I don't know if I have time for all of those features rn. Thanks for the ideas. :D

    • @scratchwithv4467
      @scratchwithv4467 Pƙed 2 lety

      @@tiziostranoo Yeah after this series is over

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

    Is there going to be a episode 9? Will it have torches and ladders?

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

    yay

  • @Cleacat
    @Cleacat Pƙed 2 lety +1

    Yes

  • @woutervanduin7415
    @woutervanduin7415 Pƙed 2 lety +1

    4:08 Is it _PosX or _PosY?

  • @hurnal6198
    @hurnal6198 Pƙed 2 lety +2

    0:25 He uses his old thing! his old profile picture is there.

  • @QuantumScratcher
    @QuantumScratcher Pƙed 2 lety +1

    Since InventoryFull is always the opposite of _canPickup, you can do this:
    set [InventoryFull v] to

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

      Tbh, I don't remember what that variable was for, I just copied it from my project that I made before the series lol. Thanks for the tip tho.

  • @der_leel
    @der_leel Pƙed 2 lety +2

    When do you publish the game? I'd like to play it. 😃

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

      I'll share it once the series is over.

    • @der_leel
      @der_leel Pƙed 2 lety +1

      Ok 😃can't wait to play

  • @Iminsanealr
    @Iminsanealr Pƙed 2 lety +3

    I have an i d e a for your game! Maybe you can add a few animals like rabbits, sheep’s, and other stuff lol.

  • @CyanBeast01
    @CyanBeast01 Pƙed 2 lety +1

    I have a secret: this series has a total of 13 sprites

  • @lilkangarooo
    @lilkangarooo Pƙed rokem +1

    (10:05) "Hash thingy."

  • @MicahBrown15
    @MicahBrown15 Pƙed 2 lety +1

    Can you make mortal kombat 1

  • @AVeryRandomDude
    @AVeryRandomDude Pƙed 2 lety +2

    how did you create vids so fast?

    • @hurnal6198
      @hurnal6198 Pƙed 2 lety +1

      he doesn't? every video comes out every week. also the last video in this series came out 2 weeks ago

    • @AVeryRandomDude
      @AVeryRandomDude Pƙed 2 lety +2

      @@hurnal6198 I don’t even have time to follow it lol, since I moved my house


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

      I post one every week, but it takes many many hours to make these tutorials.

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

      @@ShiftClickLearn Yes it is...

  • @FinisPookie
    @FinisPookie Pƙed 2 lety +1

    Fact: Selector costume name is actually "Selctor"

  • @WeepingAngel98ihbbh
    @WeepingAngel98ihbbh Pƙed rokem +1

    I wonder how someone on a laptop would switch inventory slots...

  • @bornananana
    @bornananana Pƙed 2 lety +1

    just waiting for the full game so I can reskin it for no reason

  • @penguinpenguin3156
    @penguinpenguin3156 Pƙed 2 lety +1

    I got notification saying letter# is already a variable

    • @FinisPookie
      @FinisPookie Pƙed 2 lety

      Someone finally understands that decoded Block has letter#

    • @penguinpenguin3156
      @penguinpenguin3156 Pƙed 2 lety

      @@FinisPookie ikr

    • @penguinpenguin3156
      @penguinpenguin3156 Pƙed 2 lety

      @@FinisPookie he clipped out the notification and used the one from decoded amount from block

    • @FinisPookie
      @FinisPookie Pƙed 2 lety

      @Penguin Penguin i used a new letter# and it still works

    • @penguinpenguin3156
      @penguinpenguin3156 Pƙed 2 lety +1

      @@FinisPookie i think

  • @idk_something301
    @idk_something301 Pƙed rokem

    You clearly have the scratch addons... why oh why do you not have so private and public variables aren't seperated? Mad respect that you can at all operate without it though

  • @veto_real
    @veto_real Pƙed 2 lety +1

    remember me bro?

    • @ShiftClickLearn
      @ShiftClickLearn  Pƙed 2 lety

      Yeah! You've commented on a bunch of community posts/ videos! :D

  • @thefunniguy89
    @thefunniguy89 Pƙed 2 lety +2

    ello

  • @AVeryRandomDude
    @AVeryRandomDude Pƙed 2 lety +2

    I wAs SlEePiNg

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

    and yet it happened

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

    hallo!

  • @PecokaArasio
    @PecokaArasio Pƙed 2 lety +1

    not NuMbO its NaMbAr

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

    slkoit
    3:12

  • @arsenaleditfc
    @arsenaleditfc Pƙed 2 lety +1

    Imagine being pinned

  • @CrystalKyryn
    @CrystalKyryn Pƙed 2 lety

    My numbers arnt showing the right thing, they show an Null costume for the 1st item then when you get another one it shows the item in that slot, project id is: 692581199 its so wierd.

    • @CrystalKyryn
      @CrystalKyryn Pƙed 2 lety

      its actualy an empty costume, not null

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

      Never mind, i fixed it, i was an idiot.. again as always and i switched the costume to join # (join Letter# with amount)

    • @ShiftClickLearn
      @ShiftClickLearn  Pƙed 2 lety

      Glad you figured it out!

  • @emanandzaraofficial
    @emanandzaraofficial Pƙed 2 lety +1

    Great tutorial can you play falling walls which is a game I made my username is hotburgur (yes I am aware that burger is spelled wrong that was intended) for your next scratch community post

  • @ZaeNonQ
    @ZaeNonQ Pƙed 2 lety

    Hey dude,whats your discord?? i wanna join :)