Hey everyone,
I'm pretty new to Stencyl but I've used the RPG Maker engines for quite a while so I'm pretty used to the event system Stencyl uses. However; I'm having some trouble trying to get this to work.
Here's what I'm attempting: My game revolves around defeating enemies. Surprising, right? But I'd like them to respawn on the map as long as the Enemy_Max attribute hasn't been reached... essentially, spawn x amount of enemies and respawn up to y amount every z seconds.
I attached a picture of my code snippet. It seems pretty logical to me, but when enemies are destroyed they aren't replaced, and if I place my enemy max higher than the enemy quantity I get a black screen and have to force close flash.
Any help would be appreciated. If you need more info, let me know.