Problem with initial menu
agueis
Member Posts: 420
Hello i have a problem whit the inicial menu of my game y created a button named start, when i click the button start in my mac i can play the game, but if i preview on ipad or iphone, gamesalad crash , can you help me? i think it can be the size of the scene 1 because i have created other buttons named beach( my first world) and the button works fine the size of my scene 1 is:26300x, 1068 y
Comments
Have you check the button to make sure that theres no empty rules or behaviours? And, make sure you are using an actual image for your button, even if its alpha is zero. Otherwise this can create a crash
Like Balls? Then click here! We've 100 coming soon
I´m using an image with Graphics visible unchecked, and i have no others rules only when touch is pressed go to scene 1.
When troubleshooting rules, it's important to keep in mind that cause and effect aren't always that clear cut.
I'll give you an example: "every time I come home from work and open the front door to my house, water spills everywhere and ruins my floor. Obviously, there is something wrong with my door, so I should have it replaced."
That may seem silly (it is) but let's say the actual problem was that by opening the door, I was knocking over a large water dish I had placed near the front door for my cat. Replacing the door isn't going to do a thing to help fix the problem. I have to investigate more first!
Okay, back to your issue. It could be that your start button is somehow to blame but I doubt it, especially if your rules are pretty simple (when Touch is pressed, Change Scene). So there's something happening at the beginning of your scene that is causing the problem. Maybe you're using a Loop behavior or checking a tableCellValue before that row exists, or ... who knows... but something is happening at a different pace on a mobile device than on your mac. So it's time to investigate. You can throw a bunch of DisplayText behaviors in to see if you can catch the crash right before it happens (see http://forums.gamesalad.com/discussion/comment/464399/#Comment_464399) or you can start stripping out rules/actors until you have a working game. At that point, the last rule or actor you removed was the cause of the problem (potentially; it may be more complicated than a single rule or actor on its own).
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I explain it better, the scene 1 works fine on ios device, the problem is only the link between the button start and that scene, i don´t know if this is the problem but the scene 1 is really the first scene that i created when i started to make my game six months ago, thanks
the scene 1 is the scene that appears when you create a new project. this can be the problem?
So if you remove the button and just change scene, it works? Then I guess the button is the problem.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
No, the button is no the problem, i linked the button with other scenes of the game and it works fine, i say that if i quit the game menu the scene 1 works fine, i think that is because the scene 1 is really the initial scene renamed.