Thread: remove [gioco]
View Single Post

  #2 (permalink)  
Old 02-06-08, 14:47
tem's Avatar
tem tem is offline
Moderator
 
Join Date: Jan 1970
Posts: 493
Rep Power: 40
tem is on a distinguished road
Re: remove [gioco]

Ciao!
fai un push in un'array di tutte le carte che aggiungi allo stage..
poi con un ciclo le rimuovi quando ad es finisce il tempo:

Code:
for (var i=0; i<my_array.length; i++)
{
       removeChild(my_array[i]);
}
se l'utente ha selezionato due carte corrette prima che scada il tempo fai uno splice() dall'array prima di rimuoverle..
__________________
http://www.thetconcept.com
Reply With Quote