I need help
I need help
My game keeps skipping stages and I tried out lots of ways of trying to fix that problem and it keeps skipping stages. At the bottom of the composeframe function I put the 2 ways I tried to solve the problem that I thought were the best ways to solve the problem.
- Attachments
-
- MyGame.zip
- (699.24 KiB) Downloaded 161 times
CraigSpaz
Re: I need help
Both of the methods should work fine.
I think the problem is somewhere else, like maybe after you have killed the enemies and go to the next stage it will automatically calculate them as dead and move on to the next level which again will detect them as dead and the game will be over...
This, because when you finish level 2 you have killed all the enemies. Then when you move on the enemies are still dead, but it will check for their death anyways -> moves to next level.
You need to make the enemies alive again, before moving to the next level, I think.
Kinda like this at the bottom of stage 2:
I think the problem is somewhere else, like maybe after you have killed the enemies and go to the next stage it will automatically calculate them as dead and move on to the next level which again will detect them as dead and the game will be over...
This, because when you finish level 2 you have killed all the enemies. Then when you move on the enemies are still dead, but it will check for their death anyways -> moves to next level.
You need to make the enemies alive again, before moving to the next level, I think.
Kinda like this at the bottom of stage 2:
Code: Select all
if( NoEnemysRemainingInStage2 == true )
{
if( kbd.EnterIsPressed() )
{
Stage1IsDone = true;
Stage2IsDone = true;
Level = 3;
StartMovingEnemys = true;
BossEnemyMove = true;
RedEnemyMove = true;
}
}
ʕ •ᴥ•ʔ