adding js game to construct 2

Get help using Construct 2

Post » Sun Jul 07, 2013 3:05 pm

How can I add a javascript game to construct 2? i want to code my game using javascript and add it to a layout. all the extra things like level select and home screen (that is separate from the js game) will be made in construct 2. if you've done it before, does it cause a lot of errors and problems?jaketakelake2013-07-07 17:56:40
B
6
S
1
Posts: 22
Reputation: 459

Post » Sun Jul 07, 2013 5:33 pm

you can't . I can't remember why tho , I think it's because C2 can't transform javascript to an event-based code , because of all the code that isn't related to C2 wouldn't be compatible with C2 and would thus bug the software
B
41
S
17
G
17
Posts: 2,247
Reputation: 17,436

Post » Sun Jul 07, 2013 5:54 pm

i understand. but, there must be a way to run it externally in a c2 project?
B
6
S
1
Posts: 22
Reputation: 459

Post » Sun Jul 07, 2013 6:27 pm

1: Upload your game to a server.
2: Create a c2 app which has podes iframe plugin on screen.
3:Point the iframe plugin to your game file.
4:Upload your c2 game to the same server.

I'm not sure but I think doing the above should do what you are looking for.Hope that helps.
www.h1k3.tech

We are here for you!
B
78
S
22
G
15
Posts: 709
Reputation: 16,010

Post » Sun Jul 07, 2013 6:56 pm

@jaketakelake you can run your code in a plugin. Check out the Construct 2 Javascript SDK documentation.thehen2013-07-07 18:56:57
Moderator
B
72
S
14
G
11
Posts: 900
Reputation: 11,910


Return to How do I....?

Who is online

Users browsing this forum: ma9ic, randomly, SnipG, totoe, Voytek, wakd, Yahoo [Bot] and 10 guests