Problem
Tr_2000
Member Posts: 9
So I found a problem with a game I am creating. So my game you press a balloon while it's falling and every balloon you press gives you a point. When the balloon hits the ground it goes it a game over scene and it shows your score then your best score then when you hit play again you go back to playing the game. When you go back it doesn't make the score to zero it stays the same number it was before and just adds points on that. Please respond how to fix this I have looked for tutorials and can't find any that fix my problem.
Thanks
Comments
You need to reset it manually with a chage attribute behavior.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Jamie i dont understand. Please walk me through it.
You can use the change attribute behavior to set the points back to 0 in the game over scene.
On your Play Again button, before it goes back to the play scene to play the game again, include a Change Attribute Behavior that says:
Change Attribute Points to 0
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Thank you this helped me a lot. I found another problem though. So in the game over scene it shows score and best score. But in it you cant see the score it stays 0 and the best score is basically the score showing what you got. Sorry for all the problems i need help with i am a beginner at this. Thanks again.