How do I deal with twice collide

0 favourites
  • 2 posts
From the Asset Store
Welcome to this exciting game, where various tracks and incredible adventures await you!
  • There is an issue about collide animation's custom collision border.

    When I press keyborad "X",Sprite Actor will change "move" animation to "attack" animation.

    (I set the collision border for each frame of animation "attack".)

    And If the "monster" collide with the Sprite Actor animation that is playing "attack".The "monster" will decrace 10 life.

    (I also set the collision border for each frame of monster's animation and frame.)

    But sometimes the "monster" will decrace 10 life for twice.

    I try to solve it for few days,I think I need help.

    What I may sure is:

    - the Sprite Actor's animation "attack" just palyer for once.

    - does not matter witch system "occur for once".

    - does not matter with condition's sequence.

    And When I set the time rate to 0.1.I saw the collide action done twice when the issue occerd.

    I could not figure out what happened.I could set a timer to solve it in a bad way.But I think it should have a better way to solve it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There is an issue about collide animation's custom collision border.

    When I press keyborad "X",Sprite Actor will change "move" animation to "attack" animation.

    (I set the collision border for each frame of animation "attack".)

    And If the "monster" collide with the Sprite Actor animation that is playing "attack".The "monster" will decrace 10 life.

    (I also set the collision border for each frame of monster's animation and frame.)

    But sometimes the "monster" will decrace 10 life for twice.

    I try to solve it for few days,I think I need help.

    What I may sure is:

    - the Sprite Actor's animation "attack" just palyed for once.

    - does not matter with system "occur for once".

    - does not matter with condition's sequence.

    And When I set the time rate to 0.1.I saw the collide action done twice when the issue occerd.

    I could not figure out what happened.I could set a timer to solve it in a bad way.But I think it should have a better way to solve it.

    I make actions to creat texts to display for each decrace monster's life.So I saw it collide done twice when the issue occur under 0.1 time rate.First decrace 10 life and then Second decrace 10 life.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)