hsm4ever's Forum Posts

  • thanks. And another question.

    Say, I use a loop, for example, a while loop.

    On Monster collides with ObjectA ==> subtract Monster.Damage from ObjectA.HP

    while(ObjectA.HP>0)

    I have Monster1 hit ObjectA, the loop occurs. Then, I create another Monster2 and it hits ObjectA, BEFORE the first loop finishes. How will the Event be resolved now? Will the first loop finishes and the 2nd starts, or will they take turn damaging ObjectA?

  • thanks. But I have another question.

    Can many events be activated at the same time? For example there are 3 collisions,A collides with B, C collides with D, E collides with F, if I time them all at exactly the same time, will they all access the Event "On collision with object" at the same time? Or will they be put in a queue and take turn processing it?

  • If you create an event for a family using a global or local variable, and many different object instances from that family activate that event at the same time, do they all access just ONE same variable for all the activated events, or do they each create a separate variable instance for themselves?

  • I want to make a strategy game. Here, I make a family Monster. The player and AI both control one instance of Monster. When two instances of Monster collide, they fight each other. But how do I differentiate these two instances?

    When using "Monster on collision with Monster" as the condition, I don't know which Monster instance will be picked in the action. Please help.

    And please help me with making the two monsters attacking each other until one is destroyed. Thanks.

    Here the my example capx:

  • thanks

  • Is AJAX.LastData a session variable?

  • You can add more for up to 8 - which is good enough to approximate a circle.

    How do I add more? When I create a new sprite object the "Add point" is gray out.

  • Then how do I make circular or eclipse object? The collision polygon only has 4 sides.

  • Is it possible to create a non-rectangular sprite object? Like a triangular or circular sprite object?

  • thank you. If you can send me a sample capx that would be great.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • thanks a lot

  • thanks

  • ^ Which event should I use to do that?

  • ^ How do I refer to the health bar of the attacked unit?

  • How do I pick the last spawn unit instance from a Families?