shalmu's Recent Forum Activity

  • Is is possible instead of putting all my behaviour's sources to C2 installation folder, to keep it to myself, in my own directory, so that I could just specify its path? Because currently I am developing a behaviour and I have to keep it in Git too. I may also have several versions of this behaviour.

    Now I have to copy it to my git repository from C2 installatino folder every time I make changes. And I have no possibility to have different versions of a plugin for different projects.

    Or maybe I am missing something and it is really possible? Tell me how.

  • I am developing a new behaviour and I would like to know its name, because one Sprite has several behaviours of this kind and I give them different names.

    I'm trying to access it inside "behinstProto.tick" but "this.name" returns "undefined"...

  • Thanks, this is exactly what I need! Now I know it resides not i "Blend mode", but in "Effects" and I can see many other complex blend modes there!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I can't find it in a list of modes.

    It's not there because multiplication is slower that addition for "Additive"?

    How can I emulate "multiply"?

  • Is it possible to create local variables inside a group that won't be recreated on each tick?

    By far what I see is this:

    I create a local variable in a group "foo = 5",

    then, in the same group "System -> on every tick", I do "foo+=5"

    after that I use this variable and expect it to increase by 5 on every frame.

    But all I have is 10 every time!

    The solution to this is to make this variable global, but I don't want to produce global variables, actually I want to avoid it whatsoever.

  • Sorry guys, I didn't mean to offend anyone.

    rexrainbow, I will try to explain in simple words:

    refactoring has nothing to do with "optimization for speed". Generally it is about a structure of code, it is when you move some parts of code to other parts, making the code more clean, but keeping the execution speed the same. For example, you work on something for a week and suddenly see that you have one huge class and many other small classes. Then you realize, that this class wants to do too much! After that you analyze this class and see if there are more than one entities (like topics, themes) to it. If you see, that there are 5 "topics", you split it to 5 different classes. This is an anti pattern, which is called "God object" in programming. There are many other "anti patterns", for example "Feature envy class", is when you have two classes and one of them uses too much features of another one. It is a sign for you that you probably should move some features from the second to the first one.

    You can read more here: en.wikipedia.org/wiki/Code_refactoring

    Here is a page about "God object": en.wikipedia.org/wiki/God_object

    So I thought something similar can happen to Event Sheets, because those are lists of logic entities, which is very similar to code files in many senses and when you create big games with 25 Event Sheets, with 100 groups and 200 functions, there is something to refactor too. Or is there?

  • rexrainbow, you would have received many negative reactions on StackOverflow with your "very meaningful" answers...

    Do you know what "refactoring" is or you reply just to reply?

  • That's a pity, especially knowing how easy it would be to implement such a thing.

    And generally I can see that C2 is not optimized for JS SDK devlelopers, the "Event Sheeters" are first citizens here...

  • digitalsoapbox, do you mean there is no such feature in C2? Sure?

  • I am developing some plugin in WebStorm, but everytime I need to test it I have to switch to C2, press f5, which is annoying.

    But I can set "Run" command in my WebStorm, using, for example, command line.

    Is it possible to Compile C2 project from command line?

  • When a project grows bigger, you have many event sheets, you start to contemplate about refactoring it.

    Well, I know how to refactor code, I usually follow all Martin Fowler's recommendations and it works perfectly fine for many years. But now I am looking at one huge project, and it's obviously unbalanced, so I have two questions:

    • Are there methods, best practices, anything related to refactoring event sheets?
    • Are there any known anti patterns in event sheets, that were noticed by C2 community?
    • Are there "Event Smell", like we have "code smells" in programming?

    Thank you.

  • Nonono, what I mean is when you have created a sprite with, for example, 5 different named animations, like "Idle", "going", "jumping", etc., and you want to export the entire sprite with all those animations as a separate file - is this kind of thing possible to do?

shalmu's avatar

shalmu

Member since 29 Jul, 2015

None one is following shalmu yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies