
-----------------------------------
metal_hed
Sat Mar 13, 2004 10:40 pm

limits in games
-----------------------------------
i built an etch-a-sketch game and u want to know how to set a limit the line can goto...like a boarder.

-----------------------------------
Tony
Sat Mar 13, 2004 10:44 pm


-----------------------------------
you compare current position to 0,0 and maxx,maxy to see if you're still inside the boarder or not

-----------------------------------
AsianSensation
Sat Mar 13, 2004 11:35 pm


-----------------------------------
or you could use whatdotcolor. (I'm only filling in for dodge here  :P )

-----------------------------------
jonos
Sun Mar 14, 2004 1:55 pm


-----------------------------------
you can't keep the mouse in the run window in turing (at least im pretty sure), but you can make it so it doesn't draw outside of the border:

if mousex >= maxx or mousex = maxy or mousey 