Quick question I’m trying to do this:
if leveltimer ==1 and level==1 then
wave={AlienA(col1,row3,a,1),AlienA(col1, row3*1.1,a,1), AlienA(col1, row3*1.2,a,1), AlienA(col1,row3*1.3,a,1), AlienA(col1,row3*1.4,a,1), RockA(col4,row3), RockB(col2,row3*1.2)}
end
if leveltimer ==400 and level==1 then
table.insert(wave, AlienA(col1,row3,a,1),AlienA(col1, row3*1.1,a,1), AlienA(col1, row3*1.2,a,1), AlienA(col1,row3*1.3,a,1), AlienA(col1,row3*1.4,a,1), RockA(col2,row3), RockB(col4,row3*1.2) )
end
Which is filling the table ‘wave’ with the first wave of alIens. Then when timer hits 400 it inserts new aliens into the table. The first part works well but I get errors one the next part.
The reason I doing a timer based insertion is my game involves time travel so you can jump back in time to fix something.
Thanks