let's say you have a sprite called "monster"
I make a loop that pastes 20 monsters in a row at runtime
then I want to have a loop that does something along the lines of
if monster(loopindex) is dead then monster(loopindex-1) move here
I know it's possible in a roundabout way to reference a certain monster by index
by creating a private variable
and then making two conditions like
if monsterindex = loopindex
then your actions
but it's difficult and cumbersome to do something where I select the current loop index
and the next four monsters, and do something slightly different with each
so is it possible to just reference instances by some type of sequential index?
like an array of objects?