0 Favourites

How do I Spawn different Enemies each Wave

  • Hi guys

    (Sorry for my English)

    So if i have a family with 3 objects in it lets say : Skeleton,Zombie and Witch.

    And i want in my first wave to spawn 10 skeletons

    on next wave to increase number of enemies so its gona be 10Skeletons and few zombies cos they are harder to kill

    and so on increase enemies count every wave and the number of every enemie from easy to harder.

    Thank you.

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • You don't spawn the "family", you spawn the sprites from it.

    I guess you know you have to add a global variable called "wave" and increase it after each level.

    At the start of the wave, you spawn a different number of enemies of each different kind. Use the "?" operator if you want to keep your number of events low.

    You could also spawn some of them "off screen", to made them gradually appear.

    Another approach is putting the sprites in the screen, each one with a "level" instance variable on it. Make all sprites "invisible" and, at the beginning of each wave, make "visible" the sprites with sprite.level<=currentlevel, and "destroy" every other sprite. But I think it is harder to implement.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
99 10,139
karshinkoff's avatar
Unread hot topic
56 4,733
MPPlantOfficial's avatar
Unread hot topic
0 Favourites
Why is Stencyl doing better?
44 16,854
Potato's avatar