Need a little help

Post your completed addons to share with the community

Post » Thu Dec 01, 2011 3:20 pm

Hello everybody,

Im trying to make a plugin for facebook credits. What is the best way to call a PHP file and display it in your game.

Should you make it a world property and set up the window to display or should you set it up as an object.

Javascript isn't my forte. A little direction would be wonderful.

Thanks.
B
69
S
11
G
6
Posts: 324
Reputation: 8,321

Post » Thu Dec 01, 2011 6:26 pm

Did you check the "Ajax" part of the how do I FAQ ?
Asking for directions, it might be an interesting start.

Also, w3school for PHP might be of some help.
PHP is a language in its own right, executed on a server.

You don't really display PHP. The PHP might produce some HTML though to display a page in a browser.
What you can do, is get some variables through PHP, and use/display them in C2.
This is shown in the examples of the FAQ.

I hope it gives you a nice direction.Kyatric2011-12-01 18:27:40
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 » Sun Dec 04, 2011 5:23 am

Oh my...

This is easier than I thought. I'm not a web guy. I was thinking that the problem was harder than it actually is.
B
69
S
11
G
6
Posts: 324
Reputation: 8,321


Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 0 guests