My object gets created always from the original position and since I use a static variable to store whether the mouse key is pressed or not, I can do this if I have only one item or I should create a array of the no of objects I should add.
So why do you use a static variable? Why not an ordinary non-static member variable?
Bookmarks