How do I Make a Login System With a dataBase

Get help using Construct 2

Post » Mon Apr 21, 2014 2:11 am

How do i make a login system were u can login to get items or coins
[img]imageshack.com/a/img19/5018/sqio.png[/img]
Banned User
B
5
S
1
G
1
Posts: 88
Reputation: 723

Post » Mon Apr 21, 2014 3:16 am

We need more information to answer properly.

Is this for a single player game? Multiplayer?

Are you wanting a payment gateway? Or just a database for retrieving items?

If you want your players to be able to make IAP for a single player game, the easiest way (not available on all platforms) is the clay.io plugin.

If the game is for multiplayer, then you're looking at a whole different kettle of fish.
B
10
S
2
G
1
Posts: 92
Reputation: 926

Post » Mon Apr 21, 2014 6:24 am

i want to be able to manage a multiplayer game i want to give sectain members of the game items and some not or a holiday give everyone 6 free items i want it easy i have free edition thow :P
[img]imageshack.com/a/img19/5018/sqio.png[/img]
Banned User
B
5
S
1
G
1
Posts: 88
Reputation: 723

Post » Tue Apr 22, 2014 9:18 am

here is my solution, it might be totally wrong though:
i use mysql as database, it stores everthing i want, like player name. nick name,birthday, or something else.here is a pic of one of the database table, sorry i need hide something
1.jpg



i use php to write my login and verification, if user login, use session to keep the login status.

set login redirect to your game url, so it acts like after login you can play.

now after loading the game, use ajax to read another php page, that page check the session, if user logged in already, it grab some information and echo as text message. if not logged in, user browser function to redirect to login page

some gloable variable to save those messages in your game
21.jpg



tell me if you get better idea :P
You do not have the required permissions to view the files attached to this post.
B
3
S
1
Posts: 4
Reputation: 340

Post » Tue Apr 22, 2014 5:29 pm

can u help me with this?
[img]imageshack.com/a/img19/5018/sqio.png[/img]
Banned User
B
5
S
1
G
1
Posts: 88
Reputation: 723


Return to How do I....?

Who is online

Users browsing this forum: danalog and 29 guests