Nabu's Forum Posts

  • Thank you very much linkman2004 for your help. I solved this buy using a system For loop with a variable and look at value each iteration. But the solution you provided with a variable for completion is cleaner.

    I'm gonna make a request.

    Nabu

  • Hello,

    I tested something simple. I hava a 2D array. Going through its X axis, test variable here, and stop the loop in some cases.

    So :

    • For each X element in array
    • test variable value at x, y
    • if value == 0 => do something
    • else => stop loop

    [attachment=1:q1x0vq5p][/attachment:q1x0vq5p]

    The system => stop loop action does not stop the iteration of the for each loop.

    Am I missing something ? The stop action should prevent the iteration after it, no ?

    Here's the capx : [attachment=0:q1x0vq5p][/attachment:q1x0vq5p]

  • Try Construct 3

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

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

    Maybe you should try the use the Pin behavior that is built-in Construct 2. You can choose to pin an object to another one with position, angle, or both. I think what you're trying to do is every tick set the sword on you character's image point, or move the two objects with same speed, which is not accurate.

    Nabu

  • Hello,

    I'd like to create characters with something like bone animation, and have them get randomized selected parts. Have random legs in a set of legs family, also with the torso and the head. How to do this ?

    I use container and families for now but I find these tools a little bit restrictive. For example, I choose the torso to be the container for the legs parts, arms and the head. But for design question, it will be preferable to have a virtual container named of my entity type instead of picking the torso to control the AI of the whole object.

    Also, I don't know if it is possible to assemble a container at runtime, or ake a container relying on families for the parts, and pick random object type in this family while creating the character.

    Any suggestion or precision ?

    Thanks in advance,

    Nabu