How do I integrate generic API in my game?

Get help using Construct 2

Post » Wed May 18, 2016 1:49 pm

Is there a plugin that can be used to integrate an external Javascript API ?
I have a client that wants to integrate their own API for Ads and leaderboards, but don't have a C2 plugin . It can be done maybe with AJAX plugin or another?
B
78
S
21
G
23
Posts: 513
Reputation: 18,623

Post » Wed May 18, 2016 2:25 pm

Ajax is generally used to call a file from a specific URL with some parameters.
You could use this method to make a working API, but it would require to create a processing method in the background for example with a PHP/MySql server.

The other more obvious approach would be to build your own plugin for it.
This way the plugin could be shared or sold so others would be able to use the api as well.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,562

Post » Wed May 18, 2016 5:42 pm

@lennaert I guess it is about time to learn how to create a plugin by myself.
B
78
S
21
G
23
Posts: 513
Reputation: 18,623


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests