How do I make a Hit/Visited Counter

Get help using Construct 2

Post » Thu Mar 31, 2016 5:25 pm

ello :)

Im making a game (construct rocks by the way) and I want to ad a counter that tells you at the end of the game event how many times the game has been played. or in the main menu (where ever). So in html you could handle this with a mySQL database and some php i guess.

But is there a way to do it in construct 2?

The Counter is not meant to count only the "users" rounds but all rounds/ the number the "GameOver Screen" was ever opened on this domain by aaaall the players. So basically a normal hit counter.

Would be thankful for any advice ;)
Chris
Chris Hinz

Design, visual development and illustration

www.hinz-art.com
B
7
S
1
Posts: 50
Reputation: 542

Post » Mon Apr 04, 2016 3:13 pm

Yea, PHP is exactly what you need to use. Then have an atomic counter and increment it every time the game is started (or ended, whatever you want to count).
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,415
Reputation: 4,824

Post » Mon Apr 04, 2016 3:31 pm

Thank you ;)

Sort of an update:

didn't manage to solve the problem yet :D
i find myself not figuring out a method that is googleble or easy to accomplish within Construct 2 directly. Maybe somebody will find a clever and elegant solution for a "global" hit counter one day.
Chris Hinz

Design, visual development and illustration

www.hinz-art.com
B
7
S
1
Posts: 50
Reputation: 542


Return to How do I....?

Who is online

Users browsing this forum: dop2000, R0J0hound, StillSarah and 22 guests