make a basic plugin...

Get help using Construct 2

Post » Wed Jan 04, 2012 6:29 pm

this goes out to all the super talented people who have already created great plugins for c2...
do you think it worth the time to create a generic tutorial with a simple example showing how to create a plugin with simple behaviors?
i realize that those of you that know how to do it, know how to do it. but those of us, like myself, who don't know, but want to try, may be afraid, unknowledgeable, or simply intimidated by it.
if it is too much to tackle, or too broad a thing to be covered by a tutorial, then i understand.
i'm just asking if that is indeed the case.

thank you all, for everything you have already contributed.
B
52
S
17
G
15
Posts: 1,029
Reputation: 26,339

Post » Wed Jan 04, 2012 6:45 pm

In all honesty it's not that a big task.
The better tutorial is the manual SDK.
Ashley wrote a progressive manual once again that tackles the logic behind a plugin step by step.

The "harder" is to learn javascript. And this is a language that is well documented and pretty fun to learn/use. (just follow Ashley's links, and you're set for all the references/guides you need for it)
Add that to the "guided" side of a C2 plugin, it makes it quite easy.

Also, whenever you're in doubt, you can open any other plugin and check its insides, it often help

If I remember correctly there's a barebone plugin example somewhere (I wonder if it wasn't @Ashley who provided it in the former SDK post).

Finaly any question regarding the SDK developpement can be unfrightenly asked in the SDK forum.

Hope it makes you comfortable enough to get started Kyatric2012-01-04 18:46:25
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Wed Jan 04, 2012 7:12 pm

Harrio,

I had something of a scripting background when I first started playing around with plug-ins, but I had never done anything close to the complexity of the C2 plug-ins. Still, I found it was pretty easy to get going, using the methods described by @Kyatric.

I found it was easiest to just start playing around with the edittime.js and runtime.js files, and make very simple changes, to get my head around what parts did what.

In fact, you can just start out with modifying the edittime.js and add conditions and actions, and not even touch the runtime.js file. The conditions and actions you add won't do anything yet, but it will get you familiar with the different components, where they are referenced in the C2 IDE, and how they will look.

As Kyatric said, looking at other plug-ins is also very helpful. I would like to recommend that you look at the OR plug-in, somewhat because I wrote it , but mostly because it is really simple. It has one condition, and the logic in the runtime.js is really basic.

Give it a try, I think you'll get hooked once it all makes sense. Good luck!Wastrel2012-01-04 19:13:48
Don't see the fnords and they won't eat you!
B
75
S
16
G
12
Posts: 322
Reputation: 11,608


Return to How do I....?

Who is online

Users browsing this forum: makkancs and 25 guests