How do you cue an enemy based on a certain score? Say… if you kill 20 zombies, a boss would be triggered? There are NO BUTTONS in my game, it’s all run on MCs and actionscript.
On the Scene 1: First frame is preloader for the entire game. Second and third frame is code, the hero, bullet, and enemy1 (worth one point each). Fourth frame is hero, bullet, and boss1. You kill 20 enemies in frame 3, then you go to frame 4 for the boss.
I think the code would be something like
if (_root.score=20){
gotoAndStop(“Scene 1”, 4)
}
but it doesn’t seem to work no matter where I place it.
Where would I put the code? Is it right? Otherwise I got them starting at like x=8000 and the game lags.