Wave of enemies after time?

hello
Is possible make waves of enemies after certain time in a same place?
my stage is simply: order a
after defeat enemies,the stage end as expected,but can be come more enemies after the first wave is defeated or after certain time?

thanks.
 
You either use enemy spawner or use delay to control enemy spawns.

This is delay entity I've mentioned:
Code:
name        delay
health         10
type        enemy
nomove      1 1
stealth        350
offscreenkill    3000


anim    idle
@script
    void self = getlocalvar("self");
    int  Health = getentityproperty(self, "health");

    if(frame==1){
      changeentityproperty(self, "health", Health-5);
      if (Health <= 0){
        killentity(self);
      }
    }
@end_script
    loop    1
    delay    49
    offset    1 1
    frame    data/chars/misc/empty.gif
    delay    1
    frame    data/chars/misc/empty.gif

anim    spawn
    delay    1
    offset    1 1
    frame    data/chars/misc/empty.gif

This delay entity is an enemy so you'd need to take that into account when designing enemy waves using groups.

Enemy spawner is entity which spawns enemy regularly either periodically or after current enemies are defeated. It's usually script based and has special setting for certain purposes such as stop spawning after certain waves, spawn boss every 5th wave and spawn item every 6th.

You'd need to elaborate more so we can understand how to setup enemy spawner system.
 
hello.
so,this can be called:

spawn delay
coords 490 190
at 30

this line:

stealth 350
this means after 350 entity must be "killed"

I am using the 3d template,editing to be only in one screen ( order a) with these enemies

spawn Sherry
coords 490 210
at 10

spawn Advol
coords 490 200
at 10

spawn Qbee
map 1
health 30
coords 490 220
at 15

but in the wave and want 4 Qbees and later 3 Sherry,so another 2 "delay" entity be added?then, if a want different delay time,another entity be added as "delay2", "delay3",etc.
 
Last edited:
That sounds like you only need to arrange the spawning with delays, something like this:
Code:
group    1 1
at    0

spawn    delay
health    20
coords    480 200
at    0

group    4 4
at    0

spawn    Qbee
map    1
health    30
coords    490 200
at    0

spawn    Qbee
map    1
health    30
coords    -90 200
at    0

spawn    Qbee
map    1
health    30
coords    490 230
at    0

spawn    Qbee
map    1
health    30
coords    -90 230
at    0

group    1 1
at    0

spawn    delay
health    20
coords    480 200
at    0

group    3 3
at    0

spawn    Sherry
coords    490 200
at    0

spawn    Sherry
coords    -90 200
at    0

spawn    Sherry
coords    490 230
at    0

group    1 1
at    0

spawn    delay
health    20
coords    480 200
at    0

You can expand that for more waves.
if a want different delay time,another entity be added as "delay2", "delay3",etc.

No need. Just set health to delay to define delay time. Default health is 10 which is 1 second delay. 20 health is 2 seconds delay and so on.
 
Back
Top Bottom