Haden2 / Spectrum

A horror game under development
0 stars 0 forks source link

Prevent rearranging #47

Closed Haden2 closed 9 years ago

Haden2 commented 9 years ago

Moving items around in the inventory is not necessary. You can combine items like the poison/head, but should not rearrange.

Haden2 commented 9 years ago

Prevented objects from switching. To go back to this, the code is: if(e.type == EventType.mouseUp && draggingItem) { inventory [prevIndex] = item; inventory[i] = draggedItem; draggingItem = false; draggedItem = null; }