Castle
play11.8k
58
5 Comments
Next up
Please Open inventory
fire1Reply
T do it for a while and get a bit of an issue and I can🟠🧡✔️
Reply
Do I have to do the a bit more to do with the
Reply
The inventory works, but it is indeed scuffed I have a way to improve it Create 3 slots with one empty animation frame and frames with the items in them Make those slots relative to camera. Place them anywhere you like, just place them in a straight line or whatever. Add a tag to them too. Make the slots so when you tap it on a specific frame, it will equip the item (destroy the current item you're holding and create a new item by telling character to create an item at character) or unequip it (deatroy the current item if you tapped on an empty slot) Add a check whenever its frame is on 1 or any empty frame (you only need one empty frame), add the tag empty. Otherwise, remove that tag. Optionally if you want dropping, whenever you select an item, tell all other slots to remove the equipped tag and add the equipped tag to itself. Now this is the important part: create a SlotManager blueprint that is invisible and relative to camera and has a special tag. Now, just make it so when
Reply
Jjj
Reply