Game preview not responding
Sarahbush
Member, PRO Posts: 55
Im trying to make a game but EVERYTIME I click the play button to preview it freezes so i have to force quit..
I was doing it randomly but now its everytime..?!
Anybody know what to do?
I can't carry on ..
Comments
I would check over your code. Certain logic or formatting errors can cause this.
I had this too a while ago. turns out a contain attribute was empty because of a gamesalad glitch. So like @crestwoodgames said, check your code;)
If you have a scene with a lot of actors and cant find the cause, a good way to test is to either turn off code inside actors, or remove actors from the scene a couple at a time. It can be a process of elimination and take some time. Once things start working, you can find the culprit.
Just make sure you save a new version so if you mess something up, you can revert back.
Thankyou ever everybody for the help. I ended up deleting things and starting again - it seems ok now - phew!!
Watch your expressions. The most common expresson error that causes freezes are table expressions which use attributes to define table row/columns. If the attributes are ever zero this will cause a crash as there is no such thing as row or column zero. The way to stop this is to add conditions to the rule that the expression is in. Add when attribute.row > 0 and when attribute.column > 0
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Another thing to look for is things happening immediately on scene change that can break things, like another immediate change scene or reset. Sometimes these are issues because they are outside rules or timers, but it can also be bad logic that's causing them to immediately happen.