Dynamic Backend Data

Discussion and feedback on Construct 2

Post » Mon Sep 10, 2012 5:46 pm

I'm trying to set up a dynamic minigame library and I'd like to know if anybody has some suggestions for how to get initial data into the game. I understand php and working with the AJAX object, but how can I get the minigame.id from my database to send with the request without having to hard-code it into the game?

It would be nice if we could pass vars in through html, but I don't see any options for this.

Has anybody else done this?
B
14
S
5
G
2
Posts: 20
Reputation: 2,378

Post » Mon Sep 10, 2012 8:16 pm

Extract from the how do I FAQ

[quote]Pass informations from the HTML page to the C2 application - LINK[/quote]
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Mon Sep 10, 2012 8:19 pm

ty, I searched and didn't come up with that
B
14
S
5
G
2
Posts: 20
Reputation: 2,378

Post » Wed Sep 12, 2012 7:05 pm

Do you like baking?

Cookies plug-in~

Wouldn't advise it for anything monetized thooo. easy to modify/alter i.e hack.Khaz2012-09-12 19:06:49
B
11
S
3
G
2
Posts: 110
Reputation: 2,410


Return to Construct 2 General

Who is online

Users browsing this forum: Yahoo [Bot] and 6 guests