How do I set up collision filter with enemy

Not favoritedFavorited Favorited 0 favourites
  • 4 posts
From the Asset Store
Particles support animations, collisions, effects and etc.
  • When My player hits their "W" ability I want them to be able to go through enemies and not collide with them. I am not sure if I am setting up this correctly. I also have stop on solids setting checked.

    I want to have it where if the W attack animation is playing then I set the filter which should allow them to go through enemies

  • well

    on start of layout → set Global_Var to 1

    on "W" pressed → set Global_Var to 2

    ----------------------------------

    now add this to your on player collides with enemy event

    While Global_Var == 2 & On player collides with enemy → (your actions)

    ----------------------------------

    this should work

    tell me if it doesnt

    Radkampfwagen

  • Try Construct 3

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

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

    on start of layout → set Global_Var to 1

    on "W" pressed → set Global_Var to 2

    ----------------------------------

    now add this to your on player collides with enemy event

    While Global_Var == 2 & On player collides with enemy → (your actions)

    ----------------------------------

    this should work

    tell me if it doesnt

    Radkampfwagen

    I did that and it didnt work.

    for the player collides with enemy event I should set the collision filter here ?

  • Okay I got it working, I was using the Tag under the MISC option and not the solid for families option as I saw a person in a different post say to use the MISC option but thats wrong lol. Thanks for the help

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