Just to clear out things, this could be done also in the end of each level, like clear all table when it reaches the end right?
Code: Select all
if level end then
table.remove(shot)
end
Code: Select all
if level end then
table.remove(shot)
end
No, that would only remove the last value. Now, what you want is this:cvirus wrote:Just to clear out things, this could be done also in the end of each level, like clear all table when it reaches the end right?
Code: Select all
if level end then table.remove(shot) end
Lua takes care of the rest.if level_end then
shot = {}
end
Users browsing this forum: Amazon [Bot], Google [Bot] and 8 guests