Suppose I have 30 aliens on the screen - all the same except for their x, y position and they are defined as a type. Is there any way of getting, say, the 17th alien created to drop a bomb (for example) without having to Loop through all those created until a count reaches 17 (using the FOR .... EACH command)
I've tried attaching a number within the Type itself:
Type alien
Field x,y ;The x and y coords
Field count ;alien number
End Type
but can't see how this will help.
Thanks for any help.
I've tried attaching a number within the Type itself:
Type alien
Field x,y ;The x and y coords
Field count ;alien number
End Type
but can't see how this will help.
Thanks for any help.