Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I'm trying to implement a feature in my game where player high scores and player name in the game would be saved to a text file on their PC (Note that there are high score and name variables in the game which are already saved in the disk and are loaded when game is published). I would like to know if there's a way to implement this in CopperCube? P.S: My original aim is actually for players to be able to upload their high scores online and there would be like a leaderboard on the website with different players with their different high scores to create like a sense of competition in the game but I don't have a website currently so I have to resort to saving it to a text file then players can send it to my gmail where I can create a leaderboard for all players of the game. |
||||
|
You can go full hardcore and send the results directly to a server:) The easiest way I see is to make a simple app using node js + express/fastify. You can host it for free (with some limitation obviously) on glitch.com for example. I mean - it's a fun thing to try. There are some nuances obviously, like people will probably use profanity language, or cheat, or inject a script on your page, but nothing that manual moderation can fix. |
||||
|
The most simple way is create dummy player names in Coppercube then have the player select from those name's. If you don't want other playing those name create a password protected login so only the player can use but you will have to use variables. |
||||
|
Thanks @okeoke and @serge. I thought there'll be a easier way to do it with just variables and some JavaScript actions but unfortunately... ![]() But there is a CopperCube action on neophyte.cf where a text is read from a file but the feature above is just opposite of it - text is saved to a file. |
|