Hi!
So, my I thought of something neat, and like every time I thin of something neat, I run into a code problem, and can't fix it cause I don't know how. I actually have 2 problems that need fixing and would like your help with.
The idea is this, in my game, when you kill an enemy, it might drop an item. When you walk over that item, you collect it into your inventory. When it's in your inventory, and you mouse over it, there's a text that tells you what to do, and you can either click it to use it or drag it over to a crafting box and combine it with items to make a new item. I thought, sounds simple, and I've done some of it before, this shouldn't be a problem. Ha.
I've got the adding to inventory bit partially working. I say partially because I know it should be more robust than it is. It should be added to an array, and I need the array to be split into 2 rows of 14, so at the 14th spot in the first row, it starts adding to the second row. I don't know how to do this either and thought this would be all I needed to ask. Ha.
I've got the text display information when mouse over part working. I got the click on item, something happens working with the test item and the item in the inventory is used up. The problem is it doesn't go away completely and I can still use the item and get display info text but the item isn't shown and it's been fairly frustrating.
Any ideas on how to fix this?
Code:
http://pastebin.com/5abQbmYhThat's a lot of code to sift through, sorry. But I don't know how else to ask and how else to fix this. Any help would be appreciated! Or if you've done something or seen an item inventory before done in haxeflixel and it's open source could you point me towards it please? I've looked and not found something like this but maybe another pair of eyes will help find something. Thanks for taking a look!