GMS 2 Glitch With Highlighting Slot In Inventory

S

Sahibjot Cheema

Guest
I'm making a inventory system in gms2. I was trying to highlight whatever slot your mouse was touching except that doesn't happen. If i put my mouse on slot 0, then it highlights 0. If I put my mouse over slot 1, it highlights the slot under slot 1 and if I put it on slot 2, it highlights the slot 2 under slot 3. I hope that explains what happens. Here's the code:
 
Last edited by a moderator:
Top