Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Problems with Spawning Enemies

This topic is 5813 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Okay, i am making a 3d version of SmashTV. I need the enemies to continue to come out of the 4 doors on each wall of the level until the final number of enemies are killed, ending the level. I have a door class and an enemy class. Each enemy is assigned a door, so say 5 have north door, 5 have south door and so on. When an enemy dies the go to the xy positon of that door and that doors enemy number is incrimented. When the enemy number for a door reaches its max, it opens. The enemies AI (when dead) is always checking to see if the door is open, and then it goes into released mode where it walks in a strait line until it is clear of the door, then it goes into attack mode. IS THERE ANY EASIER WAY TO DO THIS?? I will take any ideas, even if it involves starting the enemy spawning system from scratch, as the code for this method just keeps getting more complex as it goes. Especially when then i need to open doors independantly at the start of a level.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!