Know another language? Translate this tutorial!

Top 10 High Score with Webstorage and Arrays

Favourite 29 favourites
Tutorial written by ArcadEdOriginally published on 9th, June 2013

I recently put out a new video course at Learn Construct 2. This video is an add on to that course showing how to create a local top 10 high score table using webstorage and arrays.

Please note, this video was taken as part of a full course on making an infinite flyer game. Whenever you see int(timer) in the video, just treat that as your score variable. In the course we used a timer as a means of keeping score.

Also, since this is part of a full course, I can't offer up the CAPX. Maybe in the future I will do a stand alone tutorial on making a high score table.

Unlock your full gamedev potential

Upgrade to the Personal Edition of Construct 2, it has way more features and won't holding back from making money and using your full creativity like the free edition does. It's a one off payment and all Construct 2 editor updates are free for life!

View deals

Plus, it's got a lot of additional features that will help you save time and make more impressive games!

Congratulations on finishing this tutorial!

Did you learn a lot from it? Share it now with your friends!

Share and Copy this Tutorial

You are free to copy, distribute, transmit and adapt this work with correct attribution. Click for more info.


Tsengar 6,303 rep

Around 2.28 you say that you can't change that the text´╗┐ is in the top left, not sure if this is what you meant, but anyways this is what I almost always use.

Horizontal Alignment: Center
Vertical Alignment: Center

For sure not always the best option, but IMHO just makes it easier to work with in most cases.

Sunday, June 09, 2013 at 6:34:36 AM
ArcadEd 22.2k rep

I meant the origin point, and I just noticed it, It's called HOTSPOT in the properties window. I never noticed that before. Thanks.

Sunday, June 09, 2013 at 6:44:00 AM
Lordshiva1948 44.3k rep

Good thanks

Sunday, June 09, 2013 at 8:50:03 AM
AbelaNET 14.9k rep

Thanks useful

Sunday, June 09, 2013 at 2:27:31 PM
SergioRM 6,968 rep

Hello! this video is great. I would like to see a small example in the form of. capx
Thanks anyway

Monday, June 10, 2013 at 6:30:19 PM
basicUser 1,564 rep

This tutorial is great !
I am planning to add the names of the player in and after i have added in it doesn't seemed to work anymore. Please help me!

Thursday, June 20, 2013 at 4:07:11 AM
delgado 39.9k rep

Hi great tutorial i have same question like basicUser did you help add aplayer names?
Please do a tutorial :)

Sunday, June 23, 2013 at 8:42:39 AM
basicUser 1,564 rep

Hello.As my questions in the games were jumbled up, am i able to keep track and display the answer the player choose?
Thank you!

Wednesday, June 26, 2013 at 10:10:05 AM
K969 1,533 rep

Excellent tut, thanks muchly ;o)

Thursday, February 27, 2014 at 7:51:09 PM
AndreasR 30.6k rep

Great tutorial! Can you tell me how to add, based on this tutorial, a timebased score? For example as longer the play can fly as higher the score gets, or as longer the player need to finish the level as viewer points he get as score?

Would be awesome! Thanks!

Thursday, March 06, 2014 at 3:32:13 PM
TheDom 9,348 rep

Went over it 10 times.

Does NOT work!

Something missing? Timer is a variable?

Need a capx.

Saturday, March 29, 2014 at 4:46:00 PM
TheDom 9,348 rep

Sorry, didn't mean to sound rude...

Saturday, March 29, 2014 at 4:51:44 PM
roro 525 rep

I want to know what's the timer here
because I don't have it I only have a time not timer

Wednesday, April 09, 2014 at 7:07:43 PM
niko1983 924 rep

pardon me, i make a game with platform with 15 levels and score with coins and I could make highscore if it loses one of the levels and send score inside highscore? please???do you have a tutorial or capx?

Tuesday, May 13, 2014 at 8:01:20 PM
niko1983 924 rep

Hello there,

I`m using Construct 2 for the last two months.
I did learn how to complete a level and how to unlock the next one.
Even if I do know, how to create the high score table, present the table
to user,
and how to unlock the next level, im still confused about the save

I want the player, after the game restart, to load the current high
score and the status of
levels (locked/unlocked) so the user will continue its journey from the
last saved point.

Could, somebody, be so kind to see my .capx file and suggest me a
possible workaround?

thanks in advance,

Thursday, June 26, 2014 at 6:54:08 PM

Leave a comment

Everyone is welcome to leave their thoughts! Register a new account or login.