C
ColeusSanctus
Guest
Hey guys,
i have a problem with destroying a specific instance.
I create an object, called object_enemy_2 and this object creates other objects (light, gun and engine).
The enemy has 10 health and when it has a collision with the bullet from the player, health becomes -1 (relativ).
When it drops to 0 object_enemy_2 gets destroyed but then this error appears.
I understand the problem:
The light, gun and engine have step-events where they jump to a point to stay at the enemy_2.
But when enemy_2 doesnt exist anymore they cannot jump, so the error appears.
So how can prevent this and can destroy the three other object if the "main object" gets killed?
I hope somebody can give me a hint
Greetings
Simon
PS: Sorry for my english
i have a problem with destroying a specific instance.
I create an object, called object_enemy_2 and this object creates other objects (light, gun and engine).
The enemy has 10 health and when it has a collision with the bullet from the player, health becomes -1 (relativ).
When it drops to 0 object_enemy_2 gets destroyed but then this error appears.
I understand the problem:
The light, gun and engine have step-events where they jump to a point to stay at the enemy_2.
But when enemy_2 doesnt exist anymore they cannot jump, so the error appears.
So how can prevent this and can destroy the three other object if the "main object" gets killed?
I hope somebody can give me a hint
Greetings
Simon
PS: Sorry for my english