Hey.
I've made my own inventory, very basic. It's Drag and Drop or Double Click.
The thing is, it works as long as the screen is at the same position all the time, in other words, as long as you don't move the character.
If you move the character so that the screen just goes down a bit, the inventory space that reacts to the dropped item is moved upwards. Can't really explain it but go ahead and try it out:
DOWNLOAD THE .RAR FILE:
Problem.rar
Try it:
Problem
[EDIT]
You move the character with the WASD keys.
The tree in the top right corner can be destroyed by clicking on it, and then a tiny tree is spawned, that tree can be dragged to the bottom right "inventory space" as long as the screen is not moved. But try moving the screen a bit down, for example 50px and then try dragging it in to that same spot.. It only works if you drag it to the position that the inventory space used to be in, if you then move the screen back into the top left corner, the inventory space works again with the drag and drop. But the double click works no matter what.
I have 3 Different Layers:
- 2 GUI ( Sticks to the screen, where the inventory space is )
- 1 Stuffs ( Where all the movable objects is )
- 0 Backtround ( The background... )
Can anyone help with this particular problem?
I'll upload the .capx as soon as I figure out how I do it.