- Home /
Problem in loading death menu scene
I am facing a problem in my 3d project, I have 3 scenes Main Menu, Game, Death Menu When clicking play in Main menu it switches to game scene for about second then I get the Death Menu, I checked the code it's correct also there is no errors in the console about this problem, and i tried to copy scenes to a new project and still have the same problem what should i do?
Aye. Will need to see code..Without code At this point though I can only assume one of three things...
Immediately upon game start...Player dies immediately because code somewhere is removing his health enough to kill him...therefore sending you to death scene.(80% likely)
Whenever you load the play scene, you have code set to kill player when his health reaches zero, and his health is AT 0 when game starts..killing him, sending you to the death scene.(70% likely)
When you click on play the left click input itself is tied in with dealing damage to player somewhere. (30% likely)
Answer by youssefkhaled1 · Mar 16, 2017 at 07:09 AM
Their is no health, player dies when a wall hits him, i made a loadscene condition when player dies it loads, should i copy the death code for you or the player code??
$$anonymous$$aybe the player's position in the scene is such that it is touching the wall, hence triggering the death condition, and resulting in loading of death scene. So make sure the position of player is such that this doesn't happen (consider Rigidbody if any).
Yes, you need to show the death code