When no instances of object are left, can't spawn more.

For questions about using Classic.

Post » Sun Mar 06, 2011 8:56 am

I'm working on a Tower Defense game and my code to create the objects (red zombie) works fine unless I've destroyed all of the red zombie or green zombie objects.

Then it mysteriously doesn't allow me to create any new ones.

(Press 1 to spawn zombie at mouse point. Must be behind counter and they take 20 currency)
http://www.fileswap.com/dl/7OZXuPvw/TimZombie3.cap.html

The spawning code on very bottom. It has no requirement for Green Zombies to be alive to spawn Red Zombies, does not make sense.
B
1
G
1
Posts: 1
Reputation: 427

Post » Sun Mar 06, 2011 12:40 pm

http://dl.dropbox.com/u/4322334/modified.cap

Seems to be working now. I removed the mess of subevents and used family instead.
B
2
S
1
G
4
Posts: 71
Reputation: 1,342


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: GameOverBeast and 1 guest