[How Do I] Flappy Bird template add high score?

Get help using Construct 2

Post » Sat Feb 15, 2014 3:47 pm

Hello!
Sorry for this noob post...

I've recently moved from Game Salad to Construct 2 and don't regret the change!

Just a quick question. I'm using the Flappy Bird template and I would like some help on how I would be able to add a "Best" score, just like on the old app Flappy Bird? Also how would I make it update to a new score once beaten?


Thanks for taking the time to help/read!
~ Sam
B
3
Posts: 2
Reputation: 181

Post » Sat Feb 15, 2014 4:32 pm

Should be really simple - use the Webstorage object to save a local key, which contains the high score. Then, at the end of the game, just compare its value with the current high score, and if the current score is greater, update the local key's value.

(If you're developing another, yet ANOTHER clone of that stupid game, i have no respect for you; we have enough of those already, be original, try thinking for yourself, goddamnit)Stiivais2014-02-15 16:34:38
B
10
S
1
Posts: 163
Reputation: 1,436

Post » Sat Feb 15, 2014 4:38 pm

Thanks.

And its only to get to grips with things not going to publish it, basically just to learn with.
B
3
Posts: 2
Reputation: 181

Post » Sat Feb 15, 2014 5:11 pm

It would be much better to learn by making a game that actually has some logic and features to it like the platformer examples. The flappy bird template really isn't going to teach you much that will be useful in making other games.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,583


Return to How do I....?

Who is online

Users browsing this forum: adventurist, Artcadev, Blendi1223, PROxMTswatTR and 28 guests