- Title: Custom High Score Tutorial
- Description: How to add a custom high score to your game
- GM Version: GM Studio
- Registered: No
- File Type: ZIP
- File Size: 1.9Mb
- File Links:Highscore Tutorial GM Studio GMZ Version
- Required Extension: None
- Required DLL: None
Game Maker Studio includes a built in high score system to record the top 10 places. Sometimes however it is desirable to store more than just a Name and a Score or customize the display to be more in keeping with your game.
This tutorial was created specifically for GM Studio to achieve just this and more.
The illustration above depicts a Custom High Score layout showing Name, Money and Score. It is easy to customize and add to your games and does not freeze the game action. It can also add a thousands separator to the scores (to make them easier to read) and allows you to set decimal places for the additional score date (useful for collecting money amounts). The best part is you don't need to be a "wiz" to learn how.
This tutorial will teach you how to make and add a custom high score system to your game. It is aimed primarily at novice GM learners but experienced users may find it simpler than writing their own from scratch.
The High Score Example supplied with this tutorial shows how the Custom High Score System operates by simulating a game. It allows for a Name, Amount and a Score, the headings for each can be easily changed to suit your game. You can also specify the number of decimal places to display for the amount (useful for currency values) and whether to add commas as a thousands separator to the score.
The Example serves to illustrate how it works, allowing you to experiment with it before adding it to your game. The default image sets are unlikely to be in keeping with your game and alternative image sets are also supplied which you can edit or replace with your own.
The download also includes an example game together with a tutorial with step by step instructions to explain how to replace the example game's default high score system with the custom one. Knowledge of GML is an advantage but not a requirement; customizations can be done without coding knowledge.
The default GM high score system only saves a name and the score attained; this Custom display permits you to save an extra numeric field which can be used as a level counter, money earned, rank attained etc. It uses the default Game Maker high score system to store the top ten scores in the registry, so they are still maintained between game runs without the need to save any files.
This uses data structures and files to save data and is in-keeping with sandbox policies. (Compatible with GM S:Versions1.2 and 1.3)
No credit required. Free to use for personal or commercial games.
Feedback and comments always welcomed.
Edited by Noele, 14 October 2014 - 05:00 PM.