Help With Scoring "NaN"
Rickell
Member Posts: 0
in Tech Support
My score system works fin untill you die and a game over scene pops up and say "Restart" or "Go Home". when you hit restart the scoring goes to NaN no numbers or anything and when you hit "Home" and 'Play" the same thing. Someone please help???
Comments
I could be wrong but I believe NaN displays when the value is too high for the attribute type. The again, the Cookbook suggests that NaN occurs when you use an inverse trig function with an invalid value.
Does that help?
Also, are you resetting your score attribute when the player restarts?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Create a rule for both "Go Home" and "Restart" When actor recieves event touch is pressed Change attribute game.nameofyourscoreattribute to 0.