Account based multiplayer.

Get help using Construct 2

Post » Wed Jan 21, 2015 3:23 pm

I am making a 1v1 online multiplayer game.
Since the game has matchmaking, I would like to be able to save player stats, such as kills and rank, and bind those stats to an account, so they can be accessed anywhere.
I am trying to think of a way to do this, the only real idea I have is to host some sort of login server, but I don't know much about networking.

Any suggestions are greatly appreciated.
B
5
Posts: 12
Reputation: 249

Post » Wed Jan 21, 2015 7:29 pm

Yea, you have a server tied either to a file set or a database. Players' accounts are saved request to request by using HTTP sessions on the server of your choice.

You can use Amazon Web Services to setup a free EC2 virtual server hosted on their network for a year.
http://aws.amazon.com/
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,414
Reputation: 4,822

Post » Sun Aug 28, 2016 2:34 pm

Message: Aanand can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
gumshoe2029 wrote:Yea, you have a server tied either to a file set or a database. Players' accounts are saved request to request by using HTTP sessions on the server of your choice.

You can use Amazon Web Services to setup a free EC2 virtual server hosted on their network for a year.
http://aws.amazon.com/


Hi Gumshoe,
I was wondering how I would access DynamoDB from construct 2?

Or how could I access the RDS database using mySQL from construct 2?

Thanks
B
4
S
1
Posts: 8
Reputation: 470

Post » Wed Sep 07, 2016 6:08 pm

@Aanand
Hey, sorry for the delay. I have been a bit busy.

You can access the DynamoDB or RDS from either Java, PHP, Python type languages. There is usually a driver library that you can import that contains the protocols necessary to talk to the database over the internet or local network.

For our game, we use PostgreSQL RDS and use the JDBC in Java to talk to it. If you are already familiar with a language, just search for the driver library for it. If you are starting fresh, PHP is the easiest to learn followed by Python, then Java. Each successive language is more powerful though, so it depends on how much capability you need.

There might be a JavaScript library to access the database directly from Construct, but that is generally not a good idea for security reasons. It is better to have a server-side program in between the database and your client (the Construct).
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,414
Reputation: 4,822


Return to How do I....?

Who is online

Users browsing this forum: ShinjiDammit and 3 guests