Play button to next scene not working properly.
This is a very weird bug but its hanging the app in ipad.
I made a menu screen, when I touch press it goes to to the other scene. The problem is sometimes, its working sometimes its just hanging even in GS, especially the first time I start and run the game.
in ipad it starts loading and then keeps on loading for hours. If I go out of the app, then nothing happens.
The major problem is its happening even in the GS itself.
there is nothing in the button except when 2 attributes are 0, and the button is touch pressed, it goes to the scene.
The two attributes are important as I have story and credits on the main page and when they are spawned, if I click on them above the play button, the button changes scene. so i need to destroy them and change the attributes to zero, before the play button works again.
basically i am disabling the play button till credits and story actors are spawned.
there should not be any problem here, because when I reset the scene in GS it starts working.
I am really bugged because I cannot test my game on ipad.
I made a menu screen, when I touch press it goes to to the other scene. The problem is sometimes, its working sometimes its just hanging even in GS, especially the first time I start and run the game.
in ipad it starts loading and then keeps on loading for hours. If I go out of the app, then nothing happens.
The major problem is its happening even in the GS itself.
there is nothing in the button except when 2 attributes are 0, and the button is touch pressed, it goes to the scene.
The two attributes are important as I have story and credits on the main page and when they are spawned, if I click on them above the play button, the button changes scene. so i need to destroy them and change the attributes to zero, before the play button works again.
basically i am disabling the play button till credits and story actors are spawned.
there should not be any problem here, because when I reset the scene in GS it starts working.
I am really bugged because I cannot test my game on ipad.
Comments
You may have an issue with something in the code you've set up. Try turning off the the code one by one to see if you can find it. This is what I did and managed to solve the problem by fixing the code logic.
Anyhow at least its working now, its my first game, so I may have screwed somewhere with the logic or code. Also the next scene was a sliding menu scene, now I am trying to make everything simple, as it saves loading time also.