Detecting if the game is on Kongregate

0 favourites
  • 6 posts
From the Asset Store
five golem elements Sprites Sheet.Best for enemy or villain game characters.
  • My game, Carnage in Space II, has a custom login system that lets players (optionally) sign in, automatically sync their save files between computers, and view highscores and achievements all on my website regardless of where it's being played from. Currently, you can play the game from my website ( or Newgrounds; I plan to add Chrome Store and Kongregate.

    The problem is, Kongregate doesn't want any games to have login systems outside of their own.

    What I'd like is to have the game check if you're on Kongregate, and then send you to the custom login or the Kongregate login. I can customize my website to allow Kongregate accounts alongside normal ones, storing their Kongregate name instead of an email address.

    My problem: I don't see a way to detect that the game is Kongregate. How do I do that?

  • Update: I had an alternative idea - adding an extra login button which will open up the Kongregate login page. However, that doesn't work on my preview. Does it only work on live servers? Do you need to add your game's API key? Where do you do that?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • you need to first make the events, then publish a test preview on kongregate there is no other way at the moment, there is no need for api key hope it helps never used it but i think thats how it works

  • I have the game published to both Kongregate and the Chrome web store using an iFrame/hosted app. This means that both apps point to the copy of my game on my own server. Do I really have to publish to Kongregate in order to use this feature? Is it possible to have one copy that Chrome, Kongregate, and normal web users can all play on?

  • You can do that easily by checking current domain name.

    Domain name = -> do something

    else -> do something else

    You can skip the "hashing" part from there and juse use the part where it's comparing on what domain your game is currently running.

  • Keep in mind my game is running in an iFrame on Kongregate. Does the Browser.Domain return the iFrame URL or the top-level one?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)