How to Make an Inventory System in Godot - Hotbar Scrolling (#6)

preview_player
Показать описание
In this part, I go over how to scroll through active items in your hotbar.

Character sprite used:

Рекомендации по теме
Комментарии
Автор

As I always say, people who do tutorials on the internet are gods among mortals. Especially if they are godot tutorials.
.
+1 sub.

cer
Автор

you know that coding is easier when watching your episodes, nice keep it up.

Gamedev
Автор

Thanks to you I have an inventory system almost completed for my game. Really awesome tutorials. I look forward to seeing more of them.

NocturnalMorning
Автор

This time I strayed from your script a bit.
I made it so that my Hotbar would change from inventory slots 0-9 to 10-19 and so on with scrolling the mouse wheel and then I made the number keys (not numpad) to switch between the hotbar slots. Way to many if/elif/else though, there is probably a way to make that slimmer. And at the end I made a mistake by applying the same system I have for scroling through the inventory slots with my hotbar to the active slot, forgeting that the active slot goes for the hotbar slots and not the inventory slots. Obviously once I scrolled my hotbar I did not see the active slot anymore. Not obvious for me though, i needed quit a bit of time before I realised that I overenginered my script^^.

Thanks for the Tutorial.

Tam_Hawkins
Автор

Thanks a lot for those tutorials, they are fast, well made, and help a lot when learning game dev!

phunq_
Автор

Thank you for tutorial and for godot 4.2
)

cjgamedev
Автор

Arkeve... you have achieved G.O.A.T. status.

also wanna ask if you are gonna do a dialog tutorial with json because that would be absolutely awesome

futilefoxx
Автор

Awesome series! Can't wait for the next part, I'm assuming being able to put inv slots in equip slots and vice versa is the next topic?

NigelsPad
Автор

Do you might know why my selected texture is not showing? I wrote the same exact code as you but it is not showing in my hotbar

unethicalhacker
Автор

Are you gonna be making more devlogs again?

skelonz
Автор

I'm getting the error code: "Invalid set index 'texture' (on base: 'Nil') with value of type 'StyleBoxTexture'." Anyone any ideas on why ? :(

mio-xhln
Автор

Have somebody updated connect function in the hotbar to godot 4?

Mrtargi
Автор

i cant get the hot bar scrolling to work

baconator
Автор

Hi, I was wondering if you could add one more episode where you make a chest like in Minecraft or Stardew Valley, where you can store items. I have been working on this and having a difficult time. If you would prefer instead, maybe we can talk 1 on 1 and you could help me with this. Thanks in advance

glaedr
Автор

Bro please make a dialogue system tutorial from scratch 🙏

gengami