Game Crashes when changing scene

boredcomboredcom Member Posts: 10
edited November -1 in Working with GS (Mac)
I know this has been posted before, but can't seem to find an answer to it.

I've been working on a game for a few weeks now and it works fine in the editor. But testing on the iPod Touch or iPhone cause the game to crash when switching from the menu to the only level.

Works fine on the editor (takes a few seconds to load) but then on the iPhone it loads for about 3 seconds and then crashes. There are a lot of animations and code on the scene (about 300 frames). The whole game is only 6.5 MB but it is only that one scene, so I think it may be that it is trying to load too much? Can anyone help with this issue?

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    What does the viewer display for memory and such. if you get 3 seconds before a crash then it should show something. If you have a lot of large images or a small amount of bad code some where in the mix That will be your problem. Which is what it sounds like to me.
  • boredcomboredcom Member Posts: 10
    The editor doesn't crash and runs fine, it's just happening on the iPhone. I'm not sure how to get it to display that info.
  • boredcomboredcom Member Posts: 10
    I have about 100 images that are 520x300 because they are copied over from the flash version of the game. Would resizing all of these help out? I'm guessing this is a major part of the problem, but want to be sure before using up all of my time doing so
  • Fredrik BixoFredrik Bixo Member Posts: 239
    someone know if it works when you put it out on appstore or test it without viewer? i have the same problem ;)
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    100 520x300 images is going to be a huge memory load if they are in the same scene. Resizing them to 512x256 will save you some memory but still prob not enough to avoid a crash.

    And gameARN. If its crashing the viewer its prob not gonna work on an adhoc (which is the next step in testing since the viewer is never exactly like the app store version will be) And if its no good on an adhoc then its not gonna work on the appstore.
  • gamedivisiongamedivision Member Posts: 807
    double click on your image thats in the scene, cast your eyes over to the left,and where it says size thats the actual size inside the game,so if your making a game with RI checked just double that size,so if i had an actor that was 40x40 inside GS i would resize my image to 40x40 outside of GS then import it,and if i was making a game with RI checked i would resize to 80x80 then import into GS.
  • Fredrik BixoFredrik Bixo Member Posts: 239
    Ok thank you!, i have now submitted my app. Here is the trailer:
Sign In or Register to comment.