Thank you for support.
I found with help that if I'm checking (pot(2)and255) it gives back to me value 2, then I'm checking coordinates normally, here's example:
100 rem * light gun demo * 110 color0,2:color4,14:color5,1 150 a$=chr$(147):printa$:x=0:y=0:z=0 160 printtab(10)"shoot targets!" 180 char1,5,5,"O" 200 char1,5,10,"O" 220 char1,5,15,"O" 230 if(pot(2)and255)<>2then230 235 a=pen(0):b=pen(1) 250 if (b>75) and (b<90) then char1,5,5, "0":x=1 260 if (b>110) and (b<135) then char1,5, 10,"0":y=1 270 if (b>145) and (b<170) then char1,5, 15,"0":z=1 280 ifx=1andy=1andz=1thenchar1,10,20,"yo u passed!":end 290 goto230
Also thanks for every help.
Miro
|