This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
pavolbiacko2002
wrote ...
2020/3/4
How To Remember The Value?
pavolbiacko2002
2020/3/4
#
Hi, I am programing a game PacMan and I need to remember the Score when you collect all the point from the board, so next level can show up and score will stay. Can somebody help please?
pavolbiacko2002
2020/3/4
#
I mean it bcs when I want to go to new Level, I use: Greenfoot.setWorld(new MyWorld()) and all resets. :(
danpost
2020/3/4
#
Pass the value in as a parameter to the new world or adjust the score value in the new world after you create it.
pavolbiacko2002
2020/3/12
#
Ok thank you i will try it
You need to login to post a reply.
X