0 Favourites

make a basic plugin...

  • 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.

  • 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 <img src="smileys/smiley1.gif" border="0" align="middle">

    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 <img src="smileys/smiley2.gif" border="0" align="middle">

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • 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 <img src="smileys/smiley4.gif" border="0" align="middle"> , 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!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)