Can I create a game by directly coding commands

Discussion and feedback on Construct 2

Post » Mon Jun 25, 2012 5:21 am

This may have been asked before, but I can't find anything on the forum

I think that Construct 2 is a great product, but I'm from a programming background and would love to be able just to write JavaScript code and call the functions inside Construct 2.

ie a bit like in Flash,where the IDE can be used to layout the scene, but ActionScript can be used to control all the scene elements etc

Is there some equivalent way to do this in Construct 2, or is the only way to do the coding via the object properties etc.

e.g Can this be done by creating some sort of controller object which is written in JS and added to the scene to control the other objects, and to get messages e.g. click / drag etc from the objects.


Thanks
B
3
Posts: 3
Reputation: 281

Post » Mon Jun 25, 2012 1:03 pm

We don't support this, as it is not the goal of Construct 2: we are designing it to be based entirely around the event system. However, you might be interested in our Javascript plugin SDK.
Scirra Founder
B
359
S
214
G
72
Posts: 22,948
Reputation: 178,532

Post » Mon Jun 25, 2012 11:24 pm

Thanks Ashley

I'll take a look.
B
3
Posts: 3
Reputation: 281

Post » Tue Jun 26, 2012 1:21 am

You also have the Call Javascript plugin! However, I'm not quite sure how many objects are exposed to this plugin. Worth a try.
B
16
S
6
G
6
Posts: 100
Reputation: 4,840

Post » Tue Jun 26, 2012 4:40 am

OK. Thanks.

I took a look at the plugin SDK that Ashley referenced, but I don't think its going to provide the overall control that I'd like.

But In understand that Construct 2 is aimed at non-programmers, so I'm probably barking up the wrong tree, which is a pity, because the other JS game frameworks e.g. LimeJS don't have a UI, which makes it much harder to create decent looking product
B
3
Posts: 3
Reputation: 281

Post » Tue Jun 26, 2012 4:53 am

If you don't minify the Javascript, I think you can edit it on export, then just minify it with a third party tool later on.
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009


Return to Construct 2 General

Who is online

Users browsing this forum: supreme676, TRMG, zenox98 and 8 guests