hey guys
ive recently started making an RPG and i dont know how many of you have played diablo, but thats the kind of inventory i am going for. its a basic drag and drop kind of inventory except that while some items do only take up one inventory spot, most take up more. the potions and that kind of small stuff arent an issue but when you get the swords and the armor, that require a number of spots, i ran into an issue. i will try to post a screenshot to indicate what i mean.
ok, now i can get all the items to move around nicely and all that. my problem is (and youll probably need to look at the screenshot to get past my bad explanation) that you can grab the item at say the bottom right, and so when the drag box appears, the cursor is always at its bottom right. when u let go of the item, it appears in your inventory with the items top left corner being where the mouse was, instead of where the top left corner of the drag box was. anybody have any ideas that may help? all ideas will be greatly apreciated.
matt
edit: attachment troubles
Last edited by asilaydying; Jun 22nd, 2006 at 11:20 PM.
Reason: sorry jpeg was unreadable.. replaced with bmp i think