[resolved]Why can't the bullets using the trigger once condition be destroyed?

0 favourites
  • 3 posts
From the Asset Store
Change the size and position of everything without calculating anything!
  • A round white bullet is shot out and overlaps with the enemy, but it is not destroyed, but passes through the enemy. Removing the trigger once can destroy it. This is why.

    Tagged:

  • If you are utilizing a translator then it has made your question confusing.

    I can’t read the language in the picture so here is your events written with “white”, “grey” and “variable” instead of your language.

    For each white
    Trigger once
    White overlaps grey
    — white: destroy
    — white: set variable to 1
    — white overlaps grey
    — — white: destroy
    
    Every tick
    White: variable=1
    — white: destroy

    Instead of all that, wouldn’t this work to destroy white when it overlaps grey?

    white: overlaps grey
    — destroy white

    But maybe you’re trying to do something else. Also, I should point out that you probably never want to use “trigger once” in a loop.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you are utilizing a translator then it has made your question confusing.

    I can’t read the language in the picture so here is your events written with “white”, “grey” and “variable” instead of your language.

    For each white
    Trigger once
    White overlaps grey
    — white: destroy
    — white: set variable to 1
    — white overlaps grey
    — — white: destroy
    
    Every tick
    White: variable=1
    — white: destroy

    Instead of all that, wouldn’t this work to destroy white when it overlaps grey?

    white: overlaps grey
    — destroy white

    But maybe you’re trying to do something else. Also, I should point out that you probably never want to use “trigger once” in a loop.

    You can see that I used multiple instances of "white: destroy" because none of them worked. White passed through, and I need white to be destroyed when it touches grey.I found my mistake, and now I will remove the trigger once.

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