Kyatric's Forum Posts

  • Dark Savant: S is a CC plugin, it won't be compatible with C2.

    I guess that for the "item structure data" you could set up an array, populate it on startup of layout (type of item, relevant common properties like strength, durability, and whatever you need as well a s a reference to the animation/animation frame which is your "visual representation" of the item) and on spawn of an item, you populate its proparties (instance variables) with adequate values from the array.

    Hope it makes sense.

    Oh and for learning C2, checking the manual can help, and for expressions like tokenat, refer to the system references (tokenat is a system expression).

  • septeven: Please provide a test capx, just to be on the same wavelength/testing basis.

  • You do not have permission to view this post

  • For reference Weishaupt recently wrote a tutorial on the subject.

  • SocialLie: Very good job Thiago, it looks very neat.

    I can't say for the written content but the whole feel of the presentation is pretty good.

    The video was also a nice touch.

    At first I was a bit worried, but on take3 at live speed, you displayed the power.

    A little note maybe, the explosion sound when the rocket hits the tower is a bit saturating, you might want to lower its volume a bit it will be better for the audio monitors.

    <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Good find, thanks

    Also agreed with

    I don't have the same point of view as the author about the desktop gaming, as as far as I've tested it, games made with C2 execute well on my CPU and feel stable (more than handcoded ones I've tried so far indeed).

  • Weishaupt: in the project bar, above the sound and music folders.

    Right-click to add a family.

  • Picking is picky ^^

    But that's what makes the beauty and power of C2 in the end.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The indexing in actions ( array(index) ) works with a specific indexing of the currently picked instances (possibly IID, to be confirmed by Ashley), not their UID.

    If you want to pick a specific array out of its UID, add conditions after "Pick all BaseArray" Array.Pick by UID = your global variable.

  • The families sounds like what you need.

    They are available since r75 for standard and business licenses and are still being worked on (families behavior and families variables are yet to come in the next releases).

  • Cstix: I've made this commented capx to show a bit how to use arrays, and allow you to test some stuff.

    Hope it helps.

  • Cstix: there are several example of use of Arrays in the how do I FAQ (Section "Arrays").

    And you can also cross-reference with the manual.

    I hope it helps you.

  • ranma: dld again the previous capx.

    I cheated using opacity.

    It is a good question though, using the visible property with a conditionnal operator.

    I'm not sure it can be done. If it can, I'd love to know how to.

    For that one though, there's a trick/workaround to use a temp variable.

    The code you first gave would look like :

    on touch end
    -- object is visible?
    -- tVar = 0
    ++++ make object invisible
    ++++ tVar = 1
    -- object is invisible?
    -- tvar = 0
    ++++ make object visible
    ++++ tVar = 1
    

    This stops the "looping" effect.

  • Use a global var "Level".

    When you want to restart the current level :

    Go to layout by name : "Layout" & Level (for C2 this will mean "Layout0", "Layout1", "Layout2", etc...)

    For the next level, it is the same thing, just make sure to add 1 to Level on the end of level condition.