This site requires JavaScript, please enable it in your browser!
Greenfoot back
realsaifalrawie
realsaifalrawie wrote ...

2020/1/22

reset except counter of the highscore

realsaifalrawie realsaifalrawie

2020/1/22

#
hi, i am new to greenfoot and i have a question. I want to make a highscore but everytime i reset the game, the highscore goes back to 0. is it possible to reset the game except the counter of the highscore? thanks
danpost danpost

2020/1/22

#
realsaifalrawie wrote...
is it possible to reset the game except the counter of the highscore?
One way is to pass the value from world to world. Another way is to make the field a global one by adding the field modifier static.
realsaifalrawie realsaifalrawie

2020/1/28

#
ok thank you
You need to login to post a reply.