So I’m currently making a small game that’s very “catch them all”-pokemon like. I want to create a hotbar and whenever you “pick up” a creature it goes straight to the hotbar. However, I don’t want a regular inventory system where you can swap items back and forth between your hotbar, and have a limit of 6 items that you can have on your hotbar. I read something about raycasts somewhere but I have no idea what that is, or how to implement it.
Another thing I need to have is a sort of “drop” function, that after you press a certain number (IE: 1 for the first item in the hotbar, 2 for the second, etc.) and then right click, it spawns the item/creature a few feet infront of you, and “locks down” the item number (basicaly the creature’s info is all still there, but you can’t replace it because the actual info is still there despite it being out of your inventory. Then to pick it back up, you could just walk over to it and press CTRL + right click, or something like that)
(I know I will probably have to make my own GUI, but I don’t know how to do that either, can anyone point me to a good starting point where I can learn to do that as well?)
(I did watch his inventory system video but it’s not really what I need)