I use the following event to spawn random enemies:
System: Every tick - System: Set randomenemy to floor(random(3))
System: randomenemy = 0 - System: Create object A
System: randomenemy = 1 - System: Create object B
System: randomenemy = 2 - System: Create object C
I would like to know the way to spawn enemy in sequence. Like create A, B and C then repeat A, B and C.
Thanks for your input.
I forgot to add something. I want to create Object B after Object A has been destroyed and Object C after Object B Has been destroyed. When Object C has been destroyed, it goes back to create Object A and so on.
Hope it doesn't confuse you.
just make an instance variable on the sprite and use it as a bollean 0-1 so if the object "exists" set to 1 else set to 0
then make a subevent and on the loop check if its 0 or 1 then fire any action you like
Develop games in your browser. Powerful, performant & highly capable.
you can also put al the stuff in a family and do your events with the family..
He will spawn random objects from the family
This question of mine was very similar, and I received very helpful guidance:
Thanks guys. I've come up with a solution some time ago based on Fidasx's suggestion but forgot to update this thread here. I'll mark this as solved.