Pixenergy's Recent Forum Activity

  • Hello,

    I'm currently blocking on the "touch" command.

    I explain my problem with an example.

    When I touch the orange square, a red square and a blue square appear.

    When I touch the blue square, a blue circle appears. When I touch the red square, a red circle appears.

    My problem is this: when I touch the orange square (at the beginning of the scene), and the position where a square (blue or red) appears, a circle appears.

    This means that in one touch, he does 2 actions of "touch".

    I would like an action to be part of an action.

    Can you help me ?

    Thank you !

  • Hi,

    I tried that.

    However, I still block.

    I identified variable 1 as a duel and variable 0 (initial) out of combat.

    Then I said:

    - when overlapping between a knight and a monster, the variable goes to 1. I also indicate that the knight and the monster must be in state 0 for this event to occur.

    - variable 1 activates, I say that the two entities must stop and attack.

    It works in part.

    However, the victors of the fights do not return the state 0 and therefore no longer move, it remains frozen.

    I can not resume the loop, even indicating that in state 0 and each tick, it must resume movement.

    Another small thing, the entities that participated in a duel, no longer participates in any other duel (as it did not return to state 0 to resume the loop).

    I do not think it has to be complicated, but I tear my head off.

    Thanks for your help.

  • Hi plinkie !

    Thx for your answer. I will try this tonight :)

    I'll tell you if it worked

  • Try Construct 3

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

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

    I galley for a moment to know how to solve my problem.

    Description:

    I have knights and monsters on the same line.

    The knights move to the right and the monsters move to the left.

    When they meet, they fight.

    What I have today:

    There are several monsters that fight several knights at the same time (superimposed sprites).

    And the more time goes by, the more monsters and knights stack up in the same place, against each other.

    What I would like to have:

    When a knight meets a monster, he throws a "duel". The other knights or monsters who encounter this duel pass by and provoke another duel if he meets another entity.

    When an entity wins its duel, it advances to meet another enemy and causes a new duel.

    I do not know if it's really clear and sorry for my bad english.

    Thank you in advance for your help !

Pixenergy's avatar

Pixenergy

Member since 5 May, 2019

Twitter
Pixenergy has 1 followers

Trophy Case

  • 5-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

7/44
How to earn trophies