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

2020/3/25

How to fix to dont log in for saving the score?

1
2
Daav3r Daav3r

2020/3/27

#
Well it worked once again only in the asteroids but in the flappybird no. I think the problem is that the classes dont connect to each other and i dont know to fix it
Daav3r Daav3r

2020/3/27

#
I talked with my teacher and he said that the game is more advanced than it should be so thaaank you for all help, and now there is only asteroids left :)
danpost danpost

2020/3/27

#
You should only deal with the UserInfo class at start-up (to initialize high score, if possible) and when a potential high score is achieved. A field to hold a UserInfo object can be maintained in your World subclass (MyWorld?). It should be checked for it not to be null before working with it (like when checking the high score value of the current user/player). If a new high score is achieved, set it the the score of the UserInfo object, check for storage availability and save, if possible.
Daav3r Daav3r

2020/3/27

#
I got it, Thank you so much!!
You need to login to post a reply.
1
2