I referred to this spawner example and am able to use this to use the wave method shown in the capx. .
My second purpose is to store health in each spawned object and upon collision with another object, subtract by 1 and destroy when 0.
As per the example, I included an additional variable - health and maintained the health in the array e.g spawner/amount/type/health - "1;2;Yellow;1|1;1;Green;2|0;3;Red;1;3"
I created an instance variable on my enemy sprite - HealthX.
Under the as Spawn function, I set the health-local variable to the spawnobject and added another line to set healthx to health.
Separately, I have an event that upon collision, subtract 1 from healthX of the enemy sprite and one more event for e.g if pick instance with enemy.uid & healthX less than zero ->destroy the enemy sprite.
It doesnt seem to be right somehow. Can someone advise if there is a better method for this purely to detect collision of individual sprites for subtraction or if there is another topic which I can refer to?