I need help

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
Craigspaz
Posts: 33
Joined: June 9th, 2012, 12:23 am

I need help

Post by Craigspaz » June 29th, 2012, 2:15 am

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

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

Re: I need help

Post by LuX » June 29th, 2012, 11:04 am

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:

Code: Select all

if( NoEnemysRemainingInStage2 == true )
	{
		if( kbd.EnterIsPressed() )
		{
         Stage1IsDone = true;
		   Stage2IsDone = true;
			Level = 3;
			StartMovingEnemys = true;
			BossEnemyMove = true;
			RedEnemyMove = true;
		}
	}
ʕ •ᴥ•ʔ

Post Reply