What does this mean for me? You will always be able to play your favorite games on Kongregate. However, certain site features may suddenly stop working and leave you with a severely degraded experience.
What should I do? We strongly urge all our users to upgrade to modern browsers for a better experience and improved security.
We suggest you install the latest version of one of these browsers:
Kongregate is a community-driven browser games portal with an open platform for all web games.
Get your games in front of thousands of users while monetizing through ads and virtual goods.
Learn more »
Hey guys. So I am trying to make a bullet hell game in as2, but I have come to a problem where I do not know how other bullet hell games make certain enemies pop up at certain times. I only know how to make it randomly generate enemies. Any ideas? Thanks.
> *Originally posted by **[benmaster545](/forums/4/topics/337954?page=1#posts-7065388):***
> Hey guys. So I am trying to make a bullet hell game in as2, but I have come to a problem where I do not know how other bullet hell games make certain enemies pop up at certain times. I only know how to make it randomly generate enemies. Any ideas? Thanks.
First all, go learn AS3 right now if you plan on making a bullet hell game. All you’ll end up making in AS2 is a lag hell, because it simply can’t handle all of the bullets that will need to be on the screen in order to qualify the game as, well, bullet hell.
Having said that, here’s how I handled spawn waves:
1) Each enemy-to-spawn will need at least this much information: EnemyToSpawn, x, y, delayUntilSpawn
2) Each “wave” will be several of objects containing this data.
3) Each “level” will be several of these waves.
4) How you store this data is up to you—XML, arrays/vectors, etc.
Let’s say you have a wave that looks like this: (GreenSlime, 100, 1, 60), (BlueSlime, 500, 1, 120), (PinkSlime, 300, 100, 60)
The game should interpret this as "after 60 frames, spawn a green slime at coords (100, 1). Then, 120 frames after spawning the green slime, spawn a blue slime at coords (500, 1). Finally, 60 frames after spawning the blue slime, spawn the pink slime at coords (300, 100). Once everything from that wave is killed, skip to the next wave and repeat the process. If that was the last wave, end the level.