I have a family of objects and i create a random one by using
System -> Create object MyFamilyObject
I know this works in a way that it will select a random instance in the family
What I would like to do is filter what it selects from based on an instance variable of the family
The idea is the family object holds all enemies, and i spawn them randomly but i would like it to just spawn the enemies for level1 on level1 using an instance variable called LevelNumber, hope i am making sense
Thanks for getting back to me, I'll go with your suggestion above, bit of a pain but the alternative is having all the same enemies in all the same levels which would kinda suck, thanks for replying so quick!
Thanks for the links but they don't really cover what I'm trying to do. I have a family of enemies and I want to select a random object from the family to create. But I don't want to pick from ALL objects in the family. Just where an instance variable is a certain value
@xoros , yeps its a workaround, use it where you can, not sure at what number it would become a problem, you could up the loopnumbers, i been using it for 20 objects and works very good, i would also like a better way but there isn't for now.