I'm trying to create a chain reaction of destroying blocks that respawn after 5 seconds.
When the player touches a block it gets destroyed, if that block is touching another block then that block gets destroyed also etc.
Now I managed to get this working, but, I need to respawn the destroyed block 5 seconds after they've been destroyed and this is what I cannot figure it out. <img src="smileys/smiley5.gif" border="0" align="middle" />
This is how I have it setup, I tried without making another block but I couldn't get the chain reaction to work...
bblock with a instance var of 0
bblock2 also with a instance var of 0
player -> on collision with bblock
-wait 1 second
-destroy
-create bblock2 at x and y of bblock
-set touched to 1
bblock2 -> is overlapping bblock
-wait 1 sec
-destroy
-create bblock2 at x,y of bblock
-set touched to 1
system -> every tick->bblock2 touched = 1
Any help would be appreciated!
Thanks in advance.