Help! Game crashes on iOS during scene transition

Help!The switch scenes ios game often crash out of the game we encountered this problem? My last game that's it! There has been! I'm going crazy! Daren!Can you solve this problem? Thank you! Anxiously!

gplar

  • Posts: 1115
Just out of my head. If you go into transition on collision (which may occur continously) you may need to stick a "scene is transitioning" block in there to check that it is not already in transition.

Just out of my head. If you go into transition on collision (which may occur continously) you may need to stick a "scene is transitioning" block in there to check that it is not already in transition.
I am very excited Thank you Thank you for your help

FranAlt

  • Posts: 169
Something that made my scene transitions crash is to have the atlases bady configured. When the scene changes, the atlases are loaded/unloaded, so for example if you already had 3 atlases loaded in a scene and then you load 2 for the next scene without unloading the previous ones, the memory will collapse and make the game crash.

Further example: The Main Menu scene for a game requires 2 atlases (A and B) to be loaded while the Level scene 3 atlases (C, D and E).
When switching from the menu to the level, atlases A and B need to be unloaded (using the blocks) and atlases C, D and E need to be loaded. If something misses the game will crash or the screen will turn black (missing the animations from the respective atlases).

Hope I could help ;)
Swipe - FREE          Cloud Run - FREE              
                                  
         iOS                                Android
    Android