External Exam Download Resources Web Applications Games Recycle Bin

Wave Spawner

SpriteImages
sprEnemy

ObjectSpriteProperties
objEnemysprEnemyVisible
objSpawnerno spriteVisible

room layout:

objSpawnerCreate event

objSpawnerAlarm → Alarm 0 event

objEnemyCreate event

objEnemyStep → Step event

extension activities:

  1. Add different alarms that go every 2, 5 and 10 seconds, using the same objSpawner object
  2. Experiment with random numbers and arithmetic to create other patterns in the spawn waves, other than the i * 50 down the y-axis pattern shown in the example.