Extending Construct 2 with Javascript

Discussion and feedback on Construct 2

Post » Tue Feb 22, 2011 9:08 pm

[Plugin]
echo Check out Construct!
[/Plugin]
B
32
S
3
G
2
Posts: 57
Reputation: 3,692

Post » Tue Feb 22, 2011 11:05 pm

[quote="Ashley":608woo8o]Do you write plugins only because it's open source? I don't get why that means "there's not much point" now.[/quote:608woo8o]

I think you guys probably read my question the wrong way, i said "is there much point in making plugins still?", by that i meant if the app/exporter could possibly be changed at any time would there be much point in developing plugins before the changes. I also have/had no idea what the changes would involve in regard to the current system, maybe i should have wrote that question in a better way though :)

As for your question no not really, i think open-source can help with learning and getting to be a better coder though but i would be just as happy to code with a closed source apps as long as the SDKs they use are not too restrictive.

That is great news to hear thing won't change too much though. From what i have read it is only the exporter part that will be closed so we could still see the javascript the plugins used and learn from it, this is what i really like about C2 currently as it makes it so simple to create new plugins.
B
2
S
2
G
1
Posts: 121
Reputation: 1,092

Post » Wed Feb 23, 2011 1:23 am

even if the plugins "break" it is not that big of a deal!
if anything breaks then it will just be the part where construct interfaces with it
all of the code its self will be reusable (unless the language changes :lol: )
basically it would be changes so minor that it would be only a few minutes to fix them(unless it is a big plugin, bigger plugin = more time to fix it)
due to the fact that construct is currently so limited, you really need to write your own plugins to really access its true power!
if they break then fix them
B
2
G
2
Posts: 11
Reputation: 672

Post » Wed Feb 23, 2011 3:30 pm

I asked this a while ago, but the question is probably more relevant now. Would it be possible to make it so behaviors are abstracted and they interface with the runtime, thereby avoiding the need to rerwrite for each runtime, since behaviors operate on construct specific parameters, that aren't affected by alternate runtimes.
Also, do you think it'd eventually be possible to merge objects, that way, the official mouse plugin for instance, you would have one set of events that would export to the official linux exporter or windows exporter or html 5 exporter, without having to redo events for each?
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sat Feb 26, 2011 12:47 pm

I need some help. I'm trying to make a custom sprite plugin. Every single tick I need the object to be drawn. Doing this in Instance.draw:
[code:16dm2ycx]this.runtime.redraw = true;[/code:16dm2ycx]
doesn't work. Any ideas?
Note: I looked through the source code and it should work...
B
3
S
1
G
3
Posts: 49
Reputation: 1,148

Post » Sat Feb 26, 2011 3:19 pm

Why do you need it to redraw every tick? Setting that flag will definitely force a refresh on the next tick so it sounds like there's a bug in your code (maybe it really is drawing the same way).
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Thu Mar 10, 2011 2:50 am

For people who are serious with learning java from scratch: http://see.stanford.edu/see/lecturelist ... 6adcae1111

It's a webcasted programming course using java, complete with 28 lectures, pdf-handouts, required software and assignments including templates. By far the best way I've found to get into it, and good for the lazy people as you dont have to read that much, mostly look at a video (and program of course)


Here's a list of more computer science courses on different levels for those who are interested. http://www.programmerfish.com/45-free-o ... e-courses/

cheers
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

Post » Thu Mar 10, 2011 3:06 am

Javascript is possibly the worst named programming language ever. It's not Java.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Thu Mar 10, 2011 3:13 am

Bleeh.. luckily i didn't spend more then a few hours on it so far. I had noticed the terms weren't interchangeable, but i thought at least it was different branches of the same thing. Well, back to searching the web.
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

Post » Thu Mar 10, 2011 6:44 am

Guess I'll just paste the link again: http://eloquentjavascript.net/contents.html

Interactive javascript tutorial.
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: calituz, NetOne and 2 guests