Help With Scoring "NaN"

RickellRickell Member Posts: 0

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

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    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

  • CrazyApeCrazyApe Member Posts: 64

    Create a rule for both "Go Home" and "Restart" When actor recieves event touch is pressed Change attribute game.nameofyourscoreattribute to 0.

Sign In or Register to comment.