Finally i make this work, please give me a hand to subtract the time away to the countdowns,
http://www.filedropper.com/countdownandspawnarray
I used localstorage to save the countdowns, the capx makes exactly what i want.
Now i just need to fix a 3 issues:
1. When i refresh the browser new objects disappears because the value 2 is saved in the array before i destroy the enemies. (i tried to fix this but i cant find the logic to do it)
2. Respawn each enemy with interval of time between each spawn to looks more natural (right now sometimes spawn 4 or 5 enemies all at the same time) , and spawn in order, like a queue list.
3. Subtract the away time to all countdowns, i used the rex_time_awayL then right now i can see the away time in a text object to debug but i need to subtract it to all countdowns when you reopen the game, i tried on start of layout:
UPDATE: now didn't work, i don't understand why <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">
Maybe i am doing unnecessary things with this loops but if you see with the debugger visor and you see what the capx makes then you will understand perfectly what i want to do, thank you so much for your help!!! i cant believe that i progressed so much xD