Construct Classic question about trigger sets

This forum is currently in read-only mode.
From the Asset Store
Casino? money? who knows? but the target is the same!
  • I am making a small demo rpg to show some people the construct engine and i have it set up so that there are several tooltips that pop up depending on where the player is standing. so far i have 2 triggers set up:

    player is overlapping object 1

    ---set tooltip text to "blah blah blah"

    else

    ---set tooltip text to ""

    player is overlapping object 2

    ---set tooltip text to "blah blah blah 2"

    else

    ---set tooltip text to ""

    when I set up the first one it worked fine, when i set up the second one it worked fine but it broke the first one because only the second one shows the text. im guessing there is some kind of conflict where it is bypassing the first one altogether so is there some kind of extra trigger or something i need to put in before i can add more tooltips? thanks for the help in advance.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am making a small demo rpg to show some people the construct engine and i have it set up so that there are several tooltips that pop up depending on where the player is standing. so far i have 2 triggers set up:

    player is overlapping object 1

    ---set tooltip text to "blah blah blah"

    else

    ---set tooltip text to ""

    player is overlapping object 2

    ---set tooltip text to "blah blah blah 2"

    else

    ---set tooltip text to ""

    when I set up the first one it worked fine, when i set up the second one it worked fine but it broke the first one because only the second one shows the text. im guessing there is some kind of conflict where it is bypassing the first one altogether so is there some kind of extra trigger or something i need to put in before i can add more tooltips? thanks for the help in advance.

    I am not a CC user, but I would guess that setting the tooltip text actually replace the contents of it, so when the player overlaps both of them, the first one occurs, and in the same tick the second one occurs, replacing the text from the first one.

  • It doesn't work because of your second else. If you're over object 1 the first event works and sets the text, but then event 2 runs and since you're not over object 2 it sets the text to "".

    Do this instead.

    always

    --- set text to ""

    player is overlapping object1

    --- set text to "object1"

    player is overlapping object2

    --- set text to "object2"

  • Thanks R0J0. that was a really easy and quick fix

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