As the subject implies, that's what I need, and Im not gonna use a mouse. So what's the smoothest way to do it? I thought of:
All objects in a list with a 2d-pos plus width and height of that object ( think of a tile/square backpack). When trying to add new stuff to the inventory I check the 2d-array of bools wheater of not the tiles in claim are occupied or not.
Any1 that uses something similar and think I should go with this one or is there any better way? (thousands of things to do, dont wanna do to much that I have to scrap)
hmm this might work better, at least it should be easier. make a struct for the inventory (im assuming more diablo 2 style). in it, have [pos x and y for the array, bool occupied, and a reference to an object, if any, that is using part of the square.