Simplest way would be to use something like:
Code: Select all
ExitOnError(false)
for n = 1 to 100
removelayer("enemy"..n)
next n
ExitOnError(true)But is this safe way to do it? or might this cause some trouble to be using ExitOnError(false) in connection with removelayer when many of the layers to be removed wont be existing?