Hi, I was adding the final details and find that I would need to do something important: Make an equipment swap system like, change the equipped sword by other sword in inventory
here's the cp3 file: dropbox.com/scl/fi/odccu66cvyfuhe9uyqdky/Power-Gem-Fetcher.c3p
Note: To test the mechanics, go on the "test" layout and to access the code, it's on HUD>Inventory>SwapItems
You can't expect someone to create this mechanic for you. You need to explain what you have tried and what didn't work.
Develop games in your browser. Powerful, performant & highly capable.
I tried to make that if, the player clicks with right mouse button on a sword(for example) and the sword slot is occupied, then it transfer from the inventory array to the variable(the sword slot, that’s one only) and vice versa.
Sorted it here, I made the type sword and shield fixed to each slot I don't know if that was the intention but I guessed so since they were named as such and had animations.
dropbox.com/scl/fi/u130jr1uaqkytf661j21s/game_edited-2.c3p
Thanks a lot! Now I finally can launch my game update!