JeffSkyrunner's Forum Posts

  • But truth to be told, most "already coders" that come to C2 just don't take the time to learn C2's ways and see that their programming knowledge will allow them to take advantage of the event system quicker than a "non-coder".

    Make your coder friend study the manual and the tutorials and realize that THERE IS NO NEED to code, the event system IS coding.

    This is The Truth (with bot T capital letter).

    I'm a coder, and an old school one too.

    My first project in C2 was full of arrays, matrix, for loops, bunch of variables just because I was using it just as another programming language, not as the instrument it was meant to be.

    More and more I was going in developing it, I kept asking "is it possible there isn't a better way to do it with behaviours/plugins?" and the 99% of the time the answer was "yes".

    I've never finished the project in the way I thought at the start and I'm completely rewriting it in a more "Construct's way".

    The only thing I keep using as coder are Event sheets as they were classes in C# but that's just my forma mentis and a way to keep thing in order ( this post clarifies what I mean, if you're interested in it).

  • You cannot do this in that way.

    Instead, you can pass the ID of the textbox and then select it in the function... that is

    LocalVariable = txtBox.UID

    WriteMyText(LocalVariable, "John")

    and in WriteMyText you can use the Pick by unique UID

  • I found very useful to divide the work in micro release that I plan in advance, but no more than 5 releases per time. The reason for this is that you should see the whole big plan, but pay close attention just to the next few steps, in order to focus your strenght and energy.

    At the moment I'm in a bit of rush... I'll be back later if I haven't explained myself :)

  • kiran

    To do it quickly with arrays, I would use a bidimensional array:

    A[0,0] = "What is your name?"

    A[0,1] = Option 1

    A[0,2] = Option 2

    A[0,3] = Option 3

    A[1,0] = Second question

    A[1,1] = Option 1

    A[1,2] = Option 2

    A[1,3] = Option 3

    A[2,0] = Third question

    A[2,1] = Option 1

    A[2,2] = Option 2

    A[2,3] = Option 3

    And so on.

    To move from one question to another, it depends on how you will implement the game.

    What do you mean with "a session with arrays"?

  • what do you mean with

    -make the camera a sprite and make it round to 32x32.

    ?

  • jayderyu

    Of course, real life before everything, I fully understand and agree :)

  • IMHO, official plugin & behavior better then non-official...

    Even better would be if the most used plugins would be included in official releases as-they-are... I had some boring time in switching my project from rexrainbow's function plugin and official function plugin :)

  • jayderyu have you thought about asking someone else to help you? I think here is plenty of capable people...

    (no, I'm not referring to myself :) )

  • I fully agree with tulamide.

    Sorry, ryackov, in many years of programming in different languages I've seen far more troubles caused by "auto casting" than the ones made by "manual casting": a programmer should always be conscious of what he/she is doing, and leaving such operations to the "intellect" of the language is not a good thing, in my opinion...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yann

    Yes, I'm speaking having not yet finished my first project in C2, so I don't pretend to be right... in any case, I work using the "uncompressed" project (so no capx, but all the folders "exposed") and the events sheets opened in the notepad++, to speed up searches and cut&paste operations.

    In any case, probably with bigger projects I will came to your point of view, but at the moment I don't find any particular issue in projecting the workspace in this way :)

  • Yann I agree mostly on everything, but the event sheets vs groups.

    Of course it's just a personal opinion, but I think to event sheets like they were classes in OOP. With this in mind, I put everything that concerns a subject (e.g. "Deck" or "Grid") in the specific event sheet, so I know where to find the function I need.

    Nothing says, of course, you cannot combine the two when the code in the single "class" becomes messy or too long.

  • Ashley in my case it's just for the sake of a "clean" workspace... since this is my first project with Construct I cannot imagine how it could become complex to read and undestand, so I decided to add more event sheets when a big part of the code was already written. Now that I know it's not possible (at the moment, at least) do decide which event sheet is the first one, I will start future projects with the "include" event sheets and then prepare the others.

    Thanks

  • Is there a way to change which event sheet has to be loaded first?

    To better explain, bigger my project became, more I need order; for this reason I've created more event sheets, each one including another. Then I've told myself: why not creating an event sheet called "Include" and there I put all the include to other event sheets... unfortunately this has been possible only inserting an "include SheetInclude" in the firs event sheet, and this disturbs mine maniacal order :)

    So, is there a way to create a new event sheet and declare it to be the first one to be loaded?

  • Holidays are over, aren't them? ;)

  • Thanks everybody for suggestions: maybe it's just my "old school programming head" that is worring me too much.

    Thanks a lot.