Crashing after loading a level

Hello i am working on a dungeon crawler and i stumbled uppon a weird crash. Whenerver i clear the dungeon i designed it so you travel to the next dungeon by just opening the same level that generates a new dungeon etc. I have a door placed at the end and after interacting with it, it checks if there are still enemies left, if not, opens the level. The weird thing is that it doesn’t crash instantly after i open the level, i get into the loading screen and after it ends the game first freezes for like 4 seconds and then crashes. I think it might be because of the loading of the save file with all the player functionality but i really don’t know for sure. If someone can help me could be great.

One thing i forgot. I start the game from a menu level, and then i open the dungeon level, i tried opening the dungeon level directly and when i start from there it doesn’t crash but it has nothing to load.

Door Logic

Crash Video

EDIT:
I unplugged all the character’s data that gets loaded from the save file after loading the level and it stopped crashing. How can i stop it from crashing. Is it because i just have too many variables that get set?

I solved it.
It was crashing because i am using physics control and my character was being spawned in a wall which basically caused it to crash.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.