Spawning sprites is a good way to add suspense to your level. When a dozen enemies pop out of nowhere it wakes up the player! You can also spawn many other sprites aside from enemies.
Spawning sprites from the (CANWITH)SOMETHING
When the (CANWITH)SOMETHING (garbage can) is shot, it will break apart revealing whatever sprite you want it to spawn.
Place a SOMETHING(#1232) [0,SpriteToSpawn]
. SpriteToSpawn is the number of the sprite which you want to spawn when the can is shot. You can only spawn sprites which have a name assigned to them (they display a name at the bottom of the screen when highlighted).
Spawning sprites when an "actor" is killed
When an actor (enemy, stripper, civilian, etc) is killed, sprites will spawn in specified locations.
Place the actor and tag it [Channel,0]
.
Place as many R[SpriteToSpawn,Channel]
sprites as you want. Place each Respawn sprite in the location that you want the sprite to spawn. You can also determine the spawned sprite's height by raising or lowering the Respawn sprite (so if you wanted an enemy to spawn in the air, raise the Respawn sprite into the air). SpriteToSpawn is the number of the sprite you want to spawn when the actor is killed. You can only spawn sprites that have a name assigned to them (they display a name at the bottom of the screen when highlighted).
Spawning sprites with a trigger
Sprites will spawn at specified locations when a trigger is activated.
Place either a Switch[ActivationSound,Channel]
or else a T[0,Channel]
(to trigger the spawning sprite).
Place as many R[SpriteToSpawn,Channel]
sprites as you want. Their locations determine the locations that the sprites will spawn to. Raise them off of the ground if you want the sprites to spawn above the ground. SpriteToSpawn is the number of the sprite you want to spawn. You can only spawn sprites which have a name assigned to them (they display a name at the bottom of the screen when highlighted).