In Firefox and IE it runs smoothly but in Chrome there is a little lag in the update of the position of the apple.I'm making a game and the controls are based on this.Can someone please check if this happens in your setup.Thanks.

It was lagging on my computer too..using chrome...seems like it should stay at the mouse.x and mouse.y position but it fell away from it more like it was following the mouse instead of snapping to it..if that makes sense.

Some browsers use techniques like double-buffering that make the game run faster - but this imposes a one-frame delay, so things like this are always one frame behind. It's typical of practically any game engine as well.

You should not try and use sprites to replace the mouse cursor because of this problem. It can make input really laggy and frustrating. If you're just dragging around other objects, the delay shouldn't be a problem.

Thanks Ashley, i was only asking because it runs perfectly in firefox and IE.I'm not using this to replace mouse cursor, is more like to drag but i need a lot of accuracy to point to the wanted spot.I'll do this in a different way.Tks.

My game uses a sprite for a mouse cursor. What I do is I don't check for Mouse.X or Mouse.Y, but rather the mouse cursor sprite's X and Y. That way you don't get the appearance of that delay in positioning. It's still there obviously, but it doesn't matter. Works great for my game (which is a point and click adventure by the way).

[QUOTE=TL22] My game uses a sprite for a mouse cursor. What I do is I don't check for Mouse.X or Mouse.Y, but rather the mouse cursor sprite's X and Y. That way you don't get the appearance of that delay in positioning. It's still there obviously, but it doesn't matter. Works great for my game (which is a point and click adventure by the way).[/QUOTE]