score adding

Get help using Construct 2

Post » Mon Aug 26, 2013 2:24 pm

hi, i have a doubt im ny score part , after playing the game i'm getting some score,if i loose the game , ihave a option called playagain, once i click on playagain, automatically the 100 score is adding for my score, i have to stop that adding 100 score if i click playagain, can any one help me ,to overcome these issue.
B
5
S
2
Posts: 91
Reputation: 738

Post » Mon Aug 26, 2013 2:31 pm

If 'Score' is a Global variable you can set up OnClicked'PlayAgain' > ResetGlobalVariables. Also something like OnStartOfLayout > Set Variable 'Score' = 0 could work.
B
47
S
18
G
84
Posts: 2,273
Reputation: 49,800

Post » Mon Aug 26, 2013 2:47 pm

thanks @plinkie,


suppose i'm already scored some score,when click that play again it should add the score for that previous score,it should be like that what the score i have got previously.
B
5
S
2
Posts: 91
Reputation: 738

Post » Mon Aug 26, 2013 2:55 pm

You could save the game silently to store the latest score value and then when you select 'Play Again' it loads the last score you had.
B
47
S
18
G
84
Posts: 2,273
Reputation: 49,800


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 31 guests