Попробовал прописывать координаты, по х-координатам становится, по y- координатам не хочет
Code: Select all
GET TOUCH 0 AS x10,y10
GET SPRITE "1ship10" POS xx10,yy10
IF x10>34.5 AND y10>68 AND x10<242.5 AND y10<208 AND SPRITE_HIT ("1ship10",x10,y10)=1 THEN
SPRITE "1ship10" AT x10,y10 ANGLE z
ENDIF
IF xx10>34.5 AND xx10<47.5 AND SPRITE_HIT ("1ship10",x10,y10)=0 THEN
x10=34.5 ! y10=yy10
SPRITE "1ship10" AT x10,y10 ANGLE z
ENDIF
IF xx10>45.5 AND xx10<70.5 AND SPRITE_HIT ("1ship10",x10,y10)=0 THEN
x10=57.5 ! y10=yy10
SPRITE "1ship10" AT x10,y10 ANGLE z
ENDIF