I have been looking at the code a he seems to use a section called objid in his array this maybe his version of the life flag. His array looks like the following.
enemy#(enemymax,1) = objid
enemy#(enemymax,2) Is the x position
enemy#(enemymax,3) Is the y position
enemy#(enemymax,4) I am not sure what this one is
enemy#(enemymax,5) Is the enemies type
and he also uses a loop like you but it is more complicated then the one you gave me but I can see some of the parts that you gave me this is what his part looks like.
For e=1 to enemymax
Objid = enemy#(e,1)
Position object objid, alienshiftx#+enemy#(e,2),alienshifty#+enemy#(e,3),-1
Yrotate object objid,wrapvalue(180-(cos(enemy#(e,4))*10.0))
Enemy#(e,4) = wrapvalue(enemy#(e,4)+16)
Ax# = object position x (enemy#(e,1))
Ay# = object position y (enemy#(e,2))