Ok I think Igot it right and it sort of works but if I move the mouse fast enough it will still jump the maze.
oh here my messy code.
Edited changed code. This seems to work better but still if I move the mouse fast it still jumps.
oh here my messy code.
Edited changed code. This seems to work better but still if I move the mouse fast it still jumps.
load2dmaze("levels\2d\1") MoveMouse start2x,start2y MaskImage maze2,255,255,255 ClsColor 255,255,255 While Not KeyDown(1) Cls Color 0,0,0 Text 0,0,MouseX() + " " + MouseY() DrawImage maze2,0,0 If ImagesCollide(mouse2d,MouseX(),MouseY(),0,maze2,0,0,0) MoveMouse mx,my Else mx = MouseX() my = MouseY() EndIf DrawImage mouse2d,MouseX(),MouseY() Flip Wend End