You're a wizard. A magician. This is incredible.
I made an UI to work with your incredible piece of code. And now I'm stuck at some point.
I'm trying to figure how to only have 2 weapons / color equipped at the same time.
I'm using an old .capx that a user made 3 years ago, for the inventory.
construct.net/forum/construct-2/how-do-i-18/how-do-i-switch-weapons-attack-101999 here it is.
User Janlindo made a great work and it fits very well for my needs.
But as far as I unterstand all of these codes, I can't make them communicate.
I was able to make my inventory slot1 to take the color of the thing I just stepped in. Then, make the slot 2 take the color of the second thing I was stepping in.
But I don't know how to be able to "Select" which slot I want to be equipped.
I tried to store some values in a dictionnary, I tried to make a "Cursor" to make a selection of which slot had to be active and the one who wasn't overlapped by the cursor set to inactive... But that didn't work either.
I want to be able to switch between my 2 slots inventory, and when I step in a new color, replace the active color that I'm using by the new color I just stepped in.
If anyone have any idea or could lead me to a video that I didn't found, or had a similar system, and if you don't mind sharing, it would be so helpful.
Thanks by advance and... I can't tell how your capx was helpful Dop2000. Thanks again.
EDIT : The .capx is here : dropbox.com/s/kipgnwjjljv8v6b/Sprite.capx