Event contact while passing through walls?

● ARCHIVED · READ-ONLY
Started by Hierophant 9 posts View original ↗
  1. I have been having trouble with a particular event. I've managed to solve one issue, but one issue remains. The event in question is triggered by a switch, and passes through walls to get to the player. The trouble is, when the event gets to the player, it doesn't trigger, even though I set it to event contact. Instead, it triggers when the player moves to touch the ghost or when I press the action key while looking at the ghost, i.e. it's as if there's no event contact at all. Is this a consequence of it passing through walls?
  2. Hierophant said:
    I have been having trouble with a particular event. I've managed to solve one issue, but one issue remains. The event in question is triggered by a switch, and passes through walls to get to the player. The trouble is, when the event gets to the player, it doesn't trigger, even though I set it to event contact. Instead, it triggers when the player moves to touch the ghost or when I press the action key while looking at the ghost, i.e. it's as if there's no event contact at all. Is this a consequence of it passing through walls?
    It rather sounds like you put to on player tough, instead of on event touch. Tho it seems, from reading what you said, that you did set it to event touch.

    Normally it should work like that then, mind posting a screenshot of the event?
  3. No, it's on event contact. It's just acting as if it's not. I was wondering if the fact that I set it to go through walls has any influence on that. The event flies up to the character, going right over the character, and then two things may happen:

    1. If I set the event as above the characters, then nothing happens until I move the character and then either use the action button on the event or deliberately run into the event.

    2. If I set the event as same as characters, then the second I move away from the event, it triggers. But not before that.

    If I can't get it to work, then I'll just set it as same as characters. But it seems weird that it won't work on contact. I've made events like this (but not ones that go through walls) and they work just fine.
  4. I think it happens cause you set it to through, iirc, events won't trigger each other with that either.

    What you could do is some sort of extra collision detection.

    You need to put the X and Y coordinates of both the ghost and the player event in variables and the check if they are the same, aka there is a collision and then trigger what ever should happen.
  5. How would you even do that? Are you talking about tracking every single move from both the character and the event? That sounds rather unwieldy.
  6. Nay.

    You need 4 variables.

    Name them :

    Player Position X

    Player Position Y

    Ghost Position X

    Ghost Position Y

    or anything that resembles the appropirate X and Y coordinates.

    Then you set them to what you need in the varibale command.

    Player Position X is obviously Player X, Player Position Y is Player Y.

    For the ghost ones you need the X and Y of your Ghost event.

    Then you need a parallel process event checking those variables against each other.

    So you need conditions.

    If Player Position X = Ghost Postion X

    If Player Position Y = Ghost Position Y

    -what ever needs to happen in here-

    end

    end

    So you check if the ghost is actually touching you and when it does, you then proceed to do whatever you want to.

    So give your ghost event the same passing through ability you already have, but set it to parallel process with what i said above.

    If you have questions, just post a screenshot of what you already did and we see from there if it shouldn't work.
  7. Wow, just when I think I've seen the extent of its power, this software always has more surprises for me. Thank you for your incredible insight, it works perfectly!
  8. Your welcome :)
  9. :) This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.