In this tutorial you will learn how to create your own Highscores for your games, using your own free server / database. Let's go!
Here's an example of how the leaderboard with high scores can look on your game. Image: Santa Hop!
What do you need?
- Your Construct 2 game (or C3)
- A server with PHP and MySQL databases (you can get a free server on 000webhost.com)
- Download the PHP7 files (phps.zip is for older versions of php5)
Let's start, step by step...
Registrating Your New Free Server
A server is like a computer on internet where you can save your own data: pictures, files, databases, scores, games and many more things...
000webhost.com offers free web hosting, with PHP and MySQL. It allows you to create 1 free website, host your files and you can create 2 free Databases.
Go to http://www.000webhost.com. Click "Sign Up" and register as a new user.
Fill your name, email and select a new password. When you are done you will receive a confirmation email, open your email account and Confirm your registration.
Back to 000webhost, select Create a New Site. Then type a name for your free domain, ie: duquekarlgames.000webhostapp.com
The next step is to access your dashboard.
Access your Dashboard
If you have already signed up and confirmed your free account, then you can log in to your account. To access your Dashboard, click Manage Your Website.