task Pattern_H_1(x,y,tilecount) { let taskON = true; let c = 0; while(taskON == true) { yield; c++; if(c == 90) { x = rand(GetClipMinX+16, GetClipMaxX-16); y = 20; CreateShotA1(x, y, 1.75, atan2(GetPlayerY - y, GetPlayerX - x), SMALL_DOT, 20); c = 0; } if(GetCommonData("numtile_d",0) >= tilecount) {taskON = false;} } }