Please help me, i have a questions, how do i make it so when the player kills all enemies the game goes to a new frame? instance names: player= hero enemy=enemy
AS2? This might give you a clue as to what you need to do.
Enemy total enemynumber = x; //Where x is the total number of enemies in the level
Code for subtracting enemies from the total if (enemydead){ enemynumber--; } //Subtract from the total number of enemies, should be coupled with the death sequence so it registers at the right time and not prematurely
Check if enemies are all dead if (enemynumber==0){ gotoAndStop("frame" } //Can be placed inside a timer function or can be placed at the end of the death sequence for the enemy