can I put the latest cocoonjs version file in construct 2?

Discussion and feedback on Construct 2

Post » Tue Sep 02, 2014 12:45 pm

In Scirra's cocoonjs tutorial I read there's no facebook support yet, but cocoonjs does support it.
can I remove the cocoonjs code in c2runtime.js and load my own cocoonjs.js file?

Will that enable the latest cocoonjs features?
B
18
S
7
G
1
Posts: 157
Reputation: 1,928

Post » Tue Sep 02, 2014 5:15 pm

There is indeed a facebook plugin for cocoonjs. Search the forums for facebook. Calimborges is the author of that plugin so look for a post by him. You could alternately search github where he actually has the code posted.
www.h1k3.tech

We are here for you!
B
87
S
22
G
16
Posts: 715
Reputation: 16,785

Post » Wed Sep 03, 2014 6:39 am

Thanks lanceal, I add to my question a more general question: can I, in general, add the latest cocoonjs library to the exported project? I don't mind writing my own functions (not a plugin) to interact with cocoonjs (that's what I do at work every day :)). Question is, is there something technical with construct 2 that can hold me back from doing so?
B
18
S
7
G
1
Posts: 157
Reputation: 1,928

Post » Wed Sep 03, 2014 1:35 pm

Ohhhhh, lol I'm sorry I guess your question went right over my head. No I don't believe there is anything stopping you from making any adjustments to the exported files. Your life will be easier if you don't minify the project on export though. :) why not make a plugin if you have the know how?
www.h1k3.tech

We are here for you!
B
87
S
22
G
16
Posts: 715
Reputation: 16,785

Post » Wed Sep 03, 2014 1:57 pm

lanceal, I was thinking about making some changes to add facebook support this weekend, but couldn't find the time to read how to create a plugin :/
I've got a few spare hours tomorrow morning, so I'll read about it :)
B
18
S
7
G
1
Posts: 157
Reputation: 1,928

Post » Wed Sep 03, 2014 2:18 pm

You could also use the existing cocoonjs facebook plugin as a guide to create your own. Here is a link to the gentlemans plugin.

https://github.com/calimaborges/constru ... ded-plugin
www.h1k3.tech

We are here for you!
B
87
S
22
G
16
Posts: 715
Reputation: 16,785

Post » Wed Sep 03, 2014 2:30 pm

Ah, cool stuff, thanks! :)
B
18
S
7
G
1
Posts: 157
Reputation: 1,928


Return to Construct 2 General

Who is online

Users browsing this forum: Rastacity and 2 guests