0 Members and 1 Guest are viewing this topic.
function on.mouseMove(x,y) hor = x - xmouse vert = y - ymouse if hor<0 then on.arrowKey('left') elseif hor>0 then on.arrowKey('right') end if vert<0 then on.arrowKey('up') elseif vert>0 then on.arrowKey('down') end setMouse(x,y)endfunction setMouse(x,y) xmouse = x ymouse = yend
if hor<-5 and math.abs(hor)>=2*math.abs(vert) then