Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / How to keep score, and past scores of other players? I'm thinking an Edit box, but is there a simpler way? I know there is a '

Author
Message
Mark Garrett
Reviewed AGK on Steam
19
Years of Service
User Offline
Joined: 10th Jul 2005
Location: California, US
Posted: 20th Aug 2017 16:36 Edited at: 20th Aug 2017 16:42
My word game is almost done, and generates a final score. It shows the best word also.

On the last window when game ends, I want to list the score and give the player an opportunity to record it by adding his name.

I'm thinking of using an edit box, and also to transfer to a text document which will keep all the scores when the person(s) play it again.

When the game ends, it will have the latest score listed on the top and give the player opportunity to add his name. If he does not add his name, that means he is not interested in recording his score, and his score will be discarded.

If he chooses to record his score, all he needs do is add his name in the left column.

When a person starts the game again, all the scores and names from previous game will be copied off a text document located in the 'media folder' and onto the edit box. This will also give the player choice to press a button called 'View all scores', to see all past scores and names.

This score sheet will be transfered from the text document located in the 'media folder', and onto the edit box with each subsequent play, and will give the player an opportunity to scroll down on the list to see all the scores, by pressing a button. It might hold, say, 100 highest scores max.

I know there is a 'GetTextInput()' command, but I tried using it and it didn't work.
.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 20th Aug 2017 17:33 Edited at: 20th Aug 2017 17:37
Main Menu shows hiscore and player name input


HiScore Modul




Config
AGK (Steam) V2017.08.16 : Windows 10 Pro 64 Bit : AMD (17.7.2) Radeon R7 265 : Mac mini OS Sierra (10.12.2)
Mark Garrett
Reviewed AGK on Steam
19
Years of Service
User Offline
Joined: 10th Jul 2005
Location: California, US
Posted: 20th Aug 2017 18:05 Edited at: 20th Aug 2017 21:54
Well, very nice.
.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 20th Aug 2017 22:30

for scrolling your 100 entrys i think you can use SetViewOffset ( x, y )
something you not want scroll with it see Fix..ToScreen commands.
AGK (Steam) V2017.08.16 : Windows 10 Pro 64 Bit : AMD (17.7.2) Radeon R7 265 : Mac mini OS Sierra (10.12.2)

Login to post a reply

Server time is: 2024-09-30 07:32:48
Your offset time is: 2024-09-30 07:32:48