How do I create a player database for online games.

0 favourites
  • 6 posts
From the Asset Store
Fully commented source code/event sheet & sprites to create a space shooter game
  • I am creating an online multiplayer card game and wanted to know how to make a player database. In this player database I want to have the player's alias, e-mail, level status, and current in-game credit. For example, if someone logins to the game using the same e-mail as before, then all of the player's settings will be the same and will updated if anything changes (change in level/ alias, losing credit, etc). Does anyone know how I would go about this? Would I incorporate a PHP file?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Bump.

  • So I can help you with this (and hopefully a few others), but there are a few things we need to be clear on before I go any further....

    You will need:

    A hosted database set up

    -know the DB name/password/IP address

    -create a table in that DB, with columns for all of the variables you want to store

    An understanding of PHP/SQL/Ajax

    -you don't need to be a programming expert, but it is very important to at least understand what the PHP pages will be doing. (You would be amazed at how many people want to use PHP but have no desire to understand how any of it works)


    -while this is completely doable in C2, it's likely going to take some trial and error to get it working for your exact needs.

    I will post an example capx and the required PHP pages when I get home, hopefully it will shed some light on what you will need to do.



  • Nice! I have basic knowledge of mysql, but i do not know how to integrate c2 to it. I'm pretty sure if you guide me in the right direction, I can go from there. Thanks!

  • I am working on this as well,

    I am working along the lines of having 2 layers and to variables 1 for password and 1 for player name

    layer 1 having 2 text box, 1 name 1 password and a button.

    on click variables 1 and 2 are set from textboxinput1 and 2 ,then ajax is called and fills an array,

    if right layer 1 disappears and the player id name score .ect and filled

    I am stuck on the ajax line this is where i am at with it.

    [quote:169869x5]"" &playerName & "password=" &password

    and how to make it check as it seems to just carry on no matter what password is put in.

  • Kniggles Your GET string you typed in is missing an argument. You need an "&" symbol just before password in text so the GET string parameters now where the username value stops and password parameter starts


    In full string view it would like this



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