Action for when sprites DIDN'T collide?

0 favourites
  • 4 posts
From the Asset Store
Alot of High Quality Items sound effects for your game!
  • Hi everyone! (I look forward to the day I can answer instead of ask, but...)

    This is working for me so far (simplified):

    Player on collision with Enemy :

    AND Enemy is playing Attack1 animation : (action) Player is hit

    I can't figure out how:

    if the enemy attacks, but DOES NOT collide with Player, then he plays his "vulnerable" animation. (In other words, the Player has successfully dodged.)

    Any ideas?

  • Use the "Is overlapping" condition and invert the condition by right clicking or pressing "I" on the keyboard. So essentially this means "Is not overlapping".

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Use 'Is overlapping'. You can invert it (right click and invert) to detect when something isn't colliding.

    Edit -> beat me to it ;)

  • Perfect, thanks both of you!

    In case someone has the same question, I used:

    Is animation Attack1 playing

    AND Player is (not) overlapping Enemy :   Set enemy animation to "Missed"

    AND Animation frame > 3

    I had to add the 3rd condition or else the Attack1 animation would begin and immediately see it's not overlapping, and switch to "Missed" animation.

    The 3rd condition ensures it has time to begin and get into attacking range!

    Thanks again, guys! (Is there a way to flag/reward someone who had a helpful reply? I need to look into etiquette!)

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