Each time an enemy is generated, its position is chosen from 1 of 5 positions using an instance variable:
Set enemy_position to floor(random(1,5))
Ideally a new enemy wouldn't be positioned in the same place as the enemy before it (although it would be fine for the enemy after this one to be placed in that original position so it doesn't need to fill each position 1,2,3,4,5 before repeating, just not in the same place twice, one after the other).
I set enemy_position to a global variable 'lastgenerated' so am really looking for a command along the lines of
Set enemy_position to floor((random(1,5) excluding lastgenerated)) -- which, of course, doesn't work - but that's the kind of logic I'm hoping exists without having to create an array, or AdvancedRandom etc.
Is this possible?
Many thanks :)