Page 1 of 1

No more enemies after explosion...

PostPosted: Mon Dec 05, 2005 2:22 am
by StarFishDesign
I also did one enemy in my game which is flying it's path in an infinite loop from the top to the bottom of the screen.

I told the laser of the players spacecraft to destroy the enemy sprite and show an explosion anim instead. But afterwards the loop with the enemy spacecraft won't continue. Only the players spacecraft on the screen - no enemy. Any idea?

PostPosted: Mon Dec 05, 2005 12:13 pm
by makslane
How you are destroying the enemies?

PostPosted: Mon Dec 05, 2005 12:17 pm
by StarFishDesign
Enemy1 = Enemy
Starship_Shot = Laserbeam

If the laserbeam hits the enemy on any side > DestroyActor "Enemy" and CreateActor "Explosion" (which is a small GIF animation).

That's it.

PostPosted: Mon Dec 05, 2005 12:53 pm
by makslane
This will destroy all enemies.
Use: DestroyActor("Collide Actor") to destroy only the correct enemie.

PostPosted: Mon Dec 05, 2005 1:33 pm
by StarFishDesign
Yes, the enemy is destroyed then. But after that no other enemies will appear...

PostPosted: Mon Dec 05, 2005 4:18 pm
by makslane
What's happen after the DestroyActor("Collide Actor") action?
How you create other enemies?