Open MrSonicMaster opened 8 years ago
This would be very helpful. If anyone knows how to move player, please help us out.
function moveMouse(x, y) {
$("canvas").trigger($.Event("mousemove", {clientX: x, clientY: y}));
}
@Tombez thanks, will test out later.
How would I be able to move the player to a specific X and Y using canvas events? example:
function moveTo(x,y){
document.getElementById('canvas').onmousemove({clientX:x, clientY:y});
}