50 reputation
5
bio website
location
age
visits member for 4 months
seen May 18 at 6:09
stats profile views 3

Mar
23
awarded  Teacher
Mar
23
accepted Inventory Grid Detection
Mar
23
answered Inventory Grid Detection
Mar
23
comment Inventory Grid Detection
Final comment! Your solution is in fact the same as what I'm doing (but it is waaay neater) - my problem was in placing the item. The formula I ended up with is slot = 5*rowPos + colPos and now it works. Thanks all the same, you made me examine my code more closely.
Mar
23
comment Inventory Grid Detection
Actually, this only solves half my problem. See, the inventory is an ArrayList, not a 2D array, so I can't just put the item in [x][y], I have to turn x and y into a slot ID between 0-39. I had that as x + 4*y, but that doesn't seem to be playing well. Any ideas?
Mar
23
comment Inventory Grid Detection
This makes a lot of sense, though I feel like it's almost exactly what I'm doing, just neater. I'm gonna play around with this, and see if it works better. Also, thanks! I like my metal dude.
Mar
23
comment Inventory Grid Detection
Added pictures to the post.
Mar
23
revised Inventory Grid Detection
added 628 characters in body
Mar
23
comment Inventory Grid Detection
Thanks, but that's not my problem. Picking up the item (making it follow the mouse and then replacing it in the inventory) works just fine, its the placing it in the right slot on the grid (visual problem).
Mar
23
awarded  Editor
Mar
23
revised Inventory Grid Detection
deleted 165 characters in body
Mar
23
asked Inventory Grid Detection
Mar
23
awarded  Supporter
Mar
23
accepted Find the footprint of an isometric entity
Jan
24
awarded  Scholar
Jan
24
accepted Drawing isometric walls
Jan
23
awarded  Student
Jan
23
asked Drawing isometric walls
Jan
17
comment Find the footprint of an isometric entity
That said, its easy enough to define the shape of the footprint of, say, a crate, using the two faces pointing towards you and then drawing parallel lines for the two hidden faces. Is there some way of doing something like that with Java?
Jan
17
comment Find the footprint of an isometric entity
I was afraid that might be the case. I really don't like the idea of making it entirely unwalkable, because that limits my ability to do things like archways or anything like a standing column, etc.