How do I make plugin for c2 ?

Get help using Construct 2

Post » Mon Apr 13, 2015 10:37 am

hi all,
i'm searching about how to make plugin for c2
i have to convert these lines to a c2 plugin and i don't know how to ?
the lines are :

var cb = new Ejecta.Chartboost("4f21c409cd1cb2fb7000001b", "92e2de2fd7070327bdeb54c15a5295309c6fcd2d");

cb.addEventListener("interstitialCache", function(){
console.log("Interstitial Cached");
cb.showInterstitial();
});
cb.addEventListener("moreAppsCache", function(){
console.log("MoreApps Cached");
cb.showMoreApps();
});
cb.addEventListener("videoCache", function(){
console.log("Video Cached");
cb.showVideo();
});


cb.cacheInterstitial();
cb.cacheMoreApps();
cb.cacheVideo();


any help please ?
thanks in advance
B
45
S
16
G
8
Posts: 792
Reputation: 8,306

Post » Mon Apr 13, 2015 10:39 am

if i put these line on index.js the banner is called on start of game
but i need the plugin in order to control this for example on game over layout or something else
B
45
S
16
G
8
Posts: 792
Reputation: 8,306

Post » Mon Apr 13, 2015 12:09 pm

did it just use javascript call
B
45
S
16
G
8
Posts: 792
Reputation: 8,306


Return to How do I....?

Who is online

Users browsing this forum: lukewasthefish and 10 guests

cron