
-----------------------------------
shoobyman
Tue Feb 07, 2006 7:25 pm

ressetting mouse coordinates
-----------------------------------
okay i made this game and i need it to set the mouse coordinates to x=50 and y=50 each time you start it so that you don't cheat by putting your mouse at the other side when you start.
this is the code
[var x, y, button : int
x := 50
y := 50
setscreen ("offscreenonly")
loop
    View.Update
    cls
    Mouse.Where (x, y, button)
    drawline (155, 100, 155, 400, 7)
    drawline (255, 100, 255, 400, 7)
    drawline (355, 100, 355, 400, 7)
    drawline (455, 100, 455, 400, 7)
    drawline (555, 100, 555, 400, 7)

    drawline (105, 0, 105, 300, 7)
    drawline (205, 0, 205, 300, 7)
    drawline (305, 0, 305, 300, 7)
    drawline (405, 0, 405, 300, 7)
    drawline (505, 0, 505, 300, 7)

    drawfilloval (x, y, 5, 5, 7)

    if x >= 100 and x  curserx then curserx +=1 or something like that, and that would realy make it cheater proof.
