How do I get Values from an Online Database

Get help using Construct 2

Post » Fri May 01, 2015 9:03 pm

Hi,

I just want to know how I can get a value from an online database to my game.. for example when the database value is 1 than I want that the screen is green when it is 2 the screen should be red..
B
11
S
2
Posts: 93
Reputation: 917

Post » Fri May 01, 2015 11:07 pm

You need to use the AJAX plugin to request a web page and have the webpage output the value you want, based on any parameters you supply.
Nothing goes unanswered!
B
24
S
5
G
1
Posts: 434
Reputation: 3,446

Post » Sat May 02, 2015 3:49 am

I used AJAX, php, and mySQL to read/write to a db within HTML5/C2.

Here is the tutorial that got me started: https://www.scirra.com/tutorials/346/on ... -php-mysql
B
7
S
3
Posts: 30
Reputation: 687


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 25 guests