• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

SQL and GM

P

pacarico

Guest
Im creating a game where i need to load an user from a data base (on a server) to the game, make an scrollable menu to choose your user and then while you play send the information to your user in the DB and save it so the next time you can continue with your previous information.

the game will be on (html5 and android)

Thanks in advance.

edit: how can i connect the DB with the game made in game maker?
 
Last edited by a moderator:
H

Homunculus

Guest
You'll need a web application (in php or something similar) to act as an interface probably.

With gm, you make calls to the web app using http_get / http_post to return and respectively upload the player data in the remote database
 
P

pacarico

Guest
You'll need a web application (in php or something similar) to act as an interface probably.

With gm, you make calls to the web app using http_get / http_post to return and respectively upload the player data in the remote database
how do i use the http_get / http_post?
 
H

Homunculus

Guest
The manual explains that in details, with a few examples:

http_get
http_post_string

It may be a bit complex to grasp the whole thing if you are new to GM, but looking into the manual and trying it out is the first thing to do.
 

Llama_Code

Member
You will need to use PHP to do the server side stuff, and as @Catan said, use the http_post_string to send a query to the PHP page. The PHP page can basically just be a bunch of functions that return the proper data, or accept the proper data and insert it in to the database.
 
P

pacarico

Guest
The manual explains that in details, with a few examples:

http_get
http_post_string

It may be a bit complex to grasp the whole thing if you are new to GM, but looking into the manual and trying it out is the first thing to do.

i cant find a very good manual or tutorial, do you know with one can i use?
 
H

Homunculus

Guest
I'd suggest looking at online score system, since those are generally a good example of the basics of what you need, that is using http_* functions to send some data to a php script
 
Top