ID:264993
 
Code:
client
MouseEntered(object, location, control, params)
params = params2list(params)
params = params["screen-loc"]

mob.mouseX = text2num(params) * 32
params = copytext(params, findtext(params, ":") + 1)
mob.mouseX += text2num(params)
params = copytext(params, findtext(params, ",") + 1)

mob.mouseY = text2num(params) * 32
params = copytext(params, findtext(params, ":") + 1)
mob.mouseY += text2num(params)


Problem description: Well after my 'Circles' post i've managed to get the position of the mouse (In pixels) (With help :3). However here comes the issue, i want to drag an object, but when i drag it the MouseEntered() which is what i use to get the pixel location stops working. Here's the MouseEntered()

In other and easier words: I want to Drag an object on client screen that works with pixels and not with Tiles.
You'll have to do the same thing with the MouseDrag() and MouseDrop() procedures.

That might help, and hopefully solve the problem.
In response to Fushi Is Awesome
Practically worked on MouseDrag (Though it 'didn't' before.)

Now the issue is that the MouseDrag() isn't instantly called which makes the pixel movement somewhat, bad.

Also how do i place the object under the mouse EVERYTIME?