Scratch Tile Scrolling Game | Inventory UI (#8)
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!
Woowwww we're already to episode 8- That's crazy! Thank you all so much for watching! :D
Ur a good yt
when i make the letter# variable it says it is already here from the decoded amount value should i just use that variable or no?
:D
Nice vid
same
This is probably the best series you have ever done :D canât wait to see the finished project!
Wow, thanks! :D
@@ShiftClickLearn Youâre welcome!
I agree! I can't wait to see what you come up with next!
Wow what a great inventory system!
I can't wait to see how far you go with this game :)
Thanks! :]
Awesome video! Thank you so much for doing this series!
Thanks, no problem! :D
I can't wait to finish this! Amazing vid! What's next?
Block placing, particles, and a few other random things like that. :)
yaaay episode 8 EPIC
:D
Wow, this is cool, i fought it would take a lonnnnggg time to make the inventory UI but i was not that long :D
Wow... this series is Griffpatch level stuff! Keep up the good work! :D
Thanks, will do! :D
we need a day and night cycle it will be so cool
That would be so cool!
Try making it to where after a certain amount of time all the sprites get darker, and then lighter. That might sell the illusion.
YOU HIT 14K SUBS!!!!!!!!!!!!! LET'S GOOOO!!!!
YAYYYY!
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
Thanks for the tip! Glad you enjoyed. :D
I do that to
@@ShiftClickLearn Just resubbed bc yt un subbed me ig. Will be watching your great vids from now :D
PS. Thx for the heart mate.
also every video you publish produces...... THE HAPPY CHEMICAL. :)
Aww, that's so nice. đ
I'm excited to see that much-needed Ui at the bottom! I wonder how much longer until the shopkeeper will exist đ€?
sooOON
@@ShiftClickLearn Don't worry I'm not rushing you I know these take a while xD.
idk what scratch tutorials 2 try since u made so much
Do any tutorial you want! :D
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)
You are awsome, I have 32 years but I wanna be like you. XD
Aw, thanks! :D
best scratch youtuber
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
Thank you! Those are great ideas.
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?
You're SOOOOOOO good at typing LOL đ€Ł
Yup... totally. XD
After 1 year:1 million subs
You can put a wait until not up arrow then scroll 1 if you cant scroll
Really cool
Thank you!!
im making a local multiplayer game and making 4 different inventorys and still managing to fit it all on the screen is difficult
What is the next vid going to be about? Im really excited!
Block placing, particles, and a few other random things. :D
oh mah god its gettin epic
wuts the i varriable and the message at the start
same problem as avis, when i do brodcast refresh inventory the numbers that should be shown get set to the "null" costume.
Did you copy the inventory code correctly?
Myy clones get deleted and dosent show the number can someone help me?
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.
Hmmm, did you try deleting the letter clones in the very beginning?
@@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.
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!
Thanks! Is your inventory really big or something? That shouldn't happen...
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.
Great video anyways
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
Cool
How would you make multiple working rows of the inventory.
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
}
}
No success. đ„
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?
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?
@@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
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.
Hmm.. Yeah that should be possible! I need to look into that.
Hi ShifltClickLearn, I need help, do you know why my trees are flying? I can break wood but I can't see it.
What do you mean? The trees are floating for you?
@@ShiftClickLearn Yes ( sorry, my english is bad, it's because i'm not english )
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...
nvm i fixed it
Glad you fixed it.
@@crazytlingit79 how did you fix it, i am having the exact same problem
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
Nice!!
Wow thx
niceee
Thanks :D
"Oh Wow. I can type so good.*
- Owen 2022
xD
you forgot the sarcasm lol
woah!
error the first slot of inventory isnât filling up
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.
Wow that's a lot!
@@ShiftClickLearn You can split it in more videos not just 1.
By the way, I used my own custom art for all except the parallaxing background.
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!!!
bro Please reply
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!!!!!!!!!!!!!!!!!
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.
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.
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?
Im going to do some of that
@@scratchwithv4467 videos on your Channel about that?
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
@@tiziostranoo Yeah after this series is over
Is there going to be a episode 9? Will it have torches and ladders?
and that money counter in the beggining
There will be another few episodes.
yay
yayy
yayyy (add more y's at the end and keep the train of yay going on lol)
Yes
Y e s
4:08 Is it _PosX or _PosY?
It's _posX. Sorry about that.
0:25 He uses his old thing! his old profile picture is there.
Yup lol.
:> hes commenting oh his ** VIDEOOOOOOOOOOOOOO (puns and jokes :)
Since InventoryFull is always the opposite of _canPickup, you can do this:
set [InventoryFull v] to
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.
When do you publish the game? I'd like to play it. đ
I'll share it once the series is over.
Ok đcan't wait to play
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.
I have a secret: this series has a total of 13 sprites
cool XD
(10:05) "Hash thingy."
Yup lol
Can you make mortal kombat 1
That would be cool. Thanks for the idea! :D
how did you create vids so fast?
he doesn't? every video comes out every week. also the last video in this series came out 2 weeks ago
@@hurnal6198 I donât even have time to follow it lol, since I moved my houseâŠ
I post one every week, but it takes many many hours to make these tutorials.
@@ShiftClickLearn Yes it is...
Fact: Selector costume name is actually "Selctor"
typo lol
I wonder how someone on a laptop would switch inventory slots...
Hmm good question
just waiting for the full game so I can reskin it for no reason
lol
I got notification saying letter# is already a variable
Someone finally understands that decoded Block has letter#
@@FinisPookie ikr
@@FinisPookie he clipped out the notification and used the one from decoded amount from block
@Penguin Penguin i used a new letter# and it still works
@@FinisPookie i think
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
remember me bro?
Yeah! You've commented on a bunch of community posts/ videos! :D
ello
ello tuna
I wAs SlEePiNg
đŽ
zzzzZZZZ
and yet it happened
what happened lol?
@@ShiftClickLearn the new vid i waited for
hallo!
hiya!
not NuMbO its NaMbAr
whattttt
slkoit
3:12
s p e l l i n g
1 0 / 1 0 : )
Imagine being pinned
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.
its actualy an empty costume, not null
Never mind, i fixed it, i was an idiot.. again as always and i switched the costume to join # (join Letter# with amount)
Glad you figured it out!
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
That sounds like a cool game!
Hey dude,whats your discord?? i wanna join :)
I don't have a discord server.
@@ShiftClickLearn wait wha-