I`m trying to build some system for control of sprites with mouse, without need of tracking of all the ID`s and care about which specific sprite you are working with.
The second snippet is the code i`m working with.There is a problem with it.When you press left ms button you pick a sprite and you are able to move it, but it loose if you move the mouse to fast.This doesn`t happend in the first snippet.
I used the first snippet pattern to build the second one including the 3rd one in it.If you compile them you can see.
There is more problems in the code, if you have more sprites and pick 1 moving it over others it picks them too.I`m possitive that this can be solved by me, i just need to get some sleep.
EDIT: Ok, i rewrited few stuff, strech my nervs few times and make it work at last.It was process of trial and failure + massive concentration.
Btw i write this for RPG inventory system, next step is the grid + connecting it to this, some work on grid repositioning based on inventory position.
Where there is a will, there is a way.
I often edit my posts, that`s who i am
