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

  Рет қаралды 8,352

Arkeve

Arkeve

Күн бұрын

Пікірлер: 35
@cer0652
@cer0652 3 жыл бұрын
As I always say, people who do tutorials on the internet are gods among mortals. Especially if they are godot tutorials. . +1 sub.
@Gamedev00100
@Gamedev00100 3 жыл бұрын
you know that coding is easier when watching your episodes, nice keep it up.
@Tam_Hawkins
@Tam_Hawkins 3 жыл бұрын
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.
@baconator2391
@baconator2391 2 жыл бұрын
How did u fix it
@NocturnalMorning
@NocturnalMorning 3 жыл бұрын
Thanks to you I have an inventory system almost completed for my game. Really awesome tutorials. I look forward to seeing more of them.
@phunq_
@phunq_ 3 жыл бұрын
Thanks a lot for those tutorials, they are fast, well made, and help a lot when learning game dev!
@Arkeve
@Arkeve 3 жыл бұрын
Glad to hear that!
@ggrandfatherr2294
@ggrandfatherr2294 3 жыл бұрын
THANKS ARKEVE!!!
@futilefoxx6512
@futilefoxx6512 3 жыл бұрын
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
@Arkeve
@Arkeve 3 жыл бұрын
I'll try to do one sometime soon!
@cjgamedev7890
@cjgamedev7890 Ай бұрын
Thank you for tutorial and for godot 4.2 PlayerInventory.active_item_updated.connect(slots[i].refresh_style )
@Guardianangel934
@Guardianangel934 13 күн бұрын
You're a godsend.
@NigelsPad
@NigelsPad 3 жыл бұрын
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?
@Arkeve
@Arkeve 3 жыл бұрын
Yup!
@skelonz2612
@skelonz2612 3 жыл бұрын
Are you gonna be making more devlogs again?
@Arkeve
@Arkeve 3 жыл бұрын
Yeah, hopefully soon
@unethicalhacker4610
@unethicalhacker4610 3 жыл бұрын
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
@baconator2391
@baconator2391 2 жыл бұрын
i have that same problem
@lee8728
@lee8728 Жыл бұрын
Hi, try to change the logic of refresh_style function like this func refresh_style(): if item == null: set('custom_styles/panel', empty_style); if slot_type == SlotType.HOTBAR and PlayerInventory.active_item_slot == slot_index: print(slot_index); print("HOTBAR") set('custom_styles/panel', selected_style); else: set('custom_styles/panel', default_style);
@lee8728
@lee8728 Жыл бұрын
oo i found another error, you just need to change if to elif. Line elif item == null: func refresh_style(): if slot_type == SlotType.HOTBAR and PlayerInventory.active_item_slot == slot_index: set('custom_styles/panel', selected_style); elif item == null: set('custom_styles/panel', empty_style); else: set('custom_styles/panel', default_style);
@eugenegalway5112
@eugenegalway5112 3 жыл бұрын
YYYYEEEESSSS!!!!
@Mrtargi
@Mrtargi Жыл бұрын
Have somebody updated connect function in the hotbar to godot 4?
@kristoffercummings
@kristoffercummings 11 ай бұрын
Could try this PlayerInventory.active_item_updated.connect(slots[i].refresh_style)
@Mrtargi
@Mrtargi 11 ай бұрын
@@kristoffercummings thank you for the answer)
@ritikung2350
@ritikung2350 3 жыл бұрын
Can you make a drop item function?
@Arkeve
@Arkeve 3 жыл бұрын
Ill add that in the to do list :)
@mio-xh1ln
@mio-xh1ln Жыл бұрын
I'm getting the error code: "Invalid set index 'texture' (on base: 'Nil') with value of type 'StyleBoxTexture'." Anyone any ideas on why ? :(
@glaedr0173
@glaedr0173 3 жыл бұрын
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
@Arkeve
@Arkeve 3 жыл бұрын
I hopefully will make a video on making chests soon
@glaedr0173
@glaedr0173 3 жыл бұрын
@@Arkeve I have tried my hand at it, it's a bit buggy but works mostly but I could send it to you if that'll help
@glaedr0173
@glaedr0173 3 жыл бұрын
@@Arkeve I have it working now, not buggy at all lol
@buterbrodxd7259
@buterbrodxd7259 3 жыл бұрын
@@glaedr0173 Hi, how did you manage to do this, I have been sitting with this problem for many days. Have you made an inventory's for each chest?
@baconator2391
@baconator2391 2 жыл бұрын
i cant get the hot bar scrolling to work
@gengami
@gengami 3 жыл бұрын
Bro please make a dialogue system tutorial from scratch ....plezzzzz 🙏
How to Make an Inventory System in Godot - Hotbar UI (#5)
10:05
Amazing remote control#devil  #lilith #funny #shorts
00:30
Devil Lilith
Рет қаралды 11 МЛН
这是自救的好办法 #路飞#海贼王
00:43
路飞与唐舞桐
Рет қаралды 112 МЛН
The Future of Game Development
8:58
Brackeys
Рет қаралды 1,3 МЛН
How to Make an Inventory System in Godot - (#1)
9:25
Arkeve
Рет қаралды 127 М.
Godot 4 | Signals In Depth Overview
3:06
JumboGamedev
Рет қаралды 32 М.
Resource Based Inventory - Godot 3.2 Intermediate Tutorial
42:00
Save And Load Data in Godot 3.2
10:07
Game Endeavor
Рет қаралды 67 М.
Grid Based Inventory System | Godot Inventory Tutorial
24:24
Game Development Center
Рет қаралды 40 М.
Making a Desktop App with a Game Library
28:57
Coding with Sphere
Рет қаралды 26 М.
How to Make a Functional Game Menu in Godot 3.2 | Godot UI Tutorial
26:14
Game Development Center
Рет қаралды 41 М.
Amazing remote control#devil  #lilith #funny #shorts
00:30
Devil Lilith
Рет қаралды 11 МЛН