[Request] Construct2 Scripts

Discussion and feedback on Construct 2

Post » Mon Aug 19, 2013 9:32 am

Hello you devs ,

i was wondering if it could be possible to get a chance to write own scripts
for your games like in that game dev software noone is allowed to name^^

this feature would combine a beginner friendly engine with drag n drop game development and giving advanced users a chance to get their handy deeper in code and controling things a bit more on their own way :)


i would like to see a option in the preferences to switch between easy and advanced mode or to attach scripts ( maybe .c2 files :p ) to the projec and code some functions :)


just a idea :)
B
27
S
7
G
3
Posts: 299
Reputation: 4,551

Post » Mon Aug 19, 2013 10:07 am

I think it's would be super!)

(Browser object have "Execute javascript")

For example I want to write my own loops like for or while or etc... and I want have normal arrays, just arrays (array[10][10]...), and classes... Nice idea! You haven't to write your own plugin, just write few (or few hundret) strings in console and go-go-go.
B
57
S
19
G
10
Posts: 191
Reputation: 9,606

Post » Mon Aug 19, 2013 10:11 am

The javascript SDK is there for exactly that purpose :)
B
24
S
9
G
7
Posts: 756
Reputation: 7,292

Post » Mon Aug 19, 2013 10:18 am

This subject/suggestion has already been discussed/proposed many times, and always been rejecting.
As vee said, you want to script/code, go ahead and use the JS SDK.
There is no real advantage to have such coding though compared to learning to use the event system which is far more powerful than gamemaker's basic option (btw, there's absolutely no issue on Scirra's forums with talking about competitor's software since C2 is the best anyway. This kind of censorship has only been reported on said competitor's forums).
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
284
S
109
G
91
Posts: 7,317
Reputation: 87,483

Post » Mon Aug 19, 2013 10:19 am

The amount of times this comes up is ridiculous.

Ashley set out to create an event driven system, which he has done admirably.

There are numerous script driven systems out their if people require them, or even use the SDK to create your own plugins.

I for one would not like this to be incorporated.

Damn! Ninja'd by Kyatric :)zenox982013-08-19 10:20:52
If your vision so exceeds your ability, then look to something closer.
Moderator
B
131
S
29
G
81
Posts: 5,328
Reputation: 56,630

Post » Mon Aug 19, 2013 10:27 am

i dont want to code a plugin, i want to be able to write a codeline and see what it does after pressing F5 .
eg :
me.button1.clicked = layout.restart("layout1");

or something like that.

but the sdk is a good thing too
B
27
S
7
G
3
Posts: 299
Reputation: 4,551

Post » Mon Aug 19, 2013 2:23 pm

I don't think it's even possible this far in C2's development
Correct me if I'm wrong , C2 only transforms event , into javascript on runtime .
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,461

Post » Mon Aug 19, 2013 3:35 pm

[QUOTE=burningcake]eg :
me.button1.clicked = layout.restart("layout1");
[/QUOTE]



Why would you want to script that, it's already in and easy to do/use with the event system.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
284
S
109
G
91
Posts: 7,317
Reputation: 87,483

Post » Mon Aug 19, 2013 3:56 pm

Coming from Game Maker, I can understand the feeling that the drag-and-drop system is inferior to coding - when I worked in game maker, you didn't use the drag and drop system for anything.

In C2, on the other hand, the event system is powerful and flexible enough to replace coding entirely.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,679

Post » Tue Aug 20, 2013 8:49 am

I, for one, would much rather efforts be continued to improve the existing system and add new features.

The work required to allow scripting as well is potentially extensive, and given the flexibility of the current highly-capable event system -- as well as the JavaScript plug-in SDK -- I would much rather than effort be spent on more awesome features, bug fixes, and improving performance.
B
32
S
8
G
2
Posts: 110
Reputation: 3,648

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests