Code:
while(usewhistle == 1){
Game->PlaySound(33);
Link->Item[invis] = true;
Screen->ComboT[ComboAt(0,0)] = thisType;
if(timer > 10){Screen->DrawTile(2, Link->X, Link->Y, tile, 1, 1, 6, 1, 0, 0, 0, 0, true, 128);}
if(timer > 20 && timer <= 10){Screen->DrawTile(2, Link->X, Link->Y, tile+1, 1, 1, 6, 1, 0, 0, 0, 0, true, 128);}
if(timer > 30 && timer <= 20){Screen->DrawTile(2, Link->X, Link->Y, tile+2, 1, 1, 6, 1, 0, 0, 0, 0, true, 128);}
if(timer > 40 && timer <= 30){Screen->DrawTile(2, Link->X, Link->Y, tile+3, 1, 1, 6, 1, 0, 0, 0, 0, true, 128);}
if(timer == 40){usewhistle = 0; Link->Item[invis] = false; Screen->ComboT[ComboAt(0,0)] = thisType;}
timer++;
Waitframe();
}
So now I have this while loop added into my global script, and