Event contact while passing through walls?

Status
Not open for further replies.

Hierophant

Veteran
Veteran
Joined
Jul 8, 2012
Messages
122
Reaction score
1
First Language
French/English
Primarily Uses
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?
 
Last edited by a moderator:

Necromus

Veteran
Veteran
Joined
Mar 14, 2012
Messages
490
Reaction score
61
First Language
German
Primarily Uses
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?
 

Hierophant

Veteran
Veteran
Joined
Jul 8, 2012
Messages
122
Reaction score
1
First Language
French/English
Primarily Uses
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.
 
Last edited by a moderator:

Necromus

Veteran
Veteran
Joined
Mar 14, 2012
Messages
490
Reaction score
61
First Language
German
Primarily Uses
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.
 

Hierophant

Veteran
Veteran
Joined
Jul 8, 2012
Messages
122
Reaction score
1
First Language
French/English
Primarily Uses
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.
 

Necromus

Veteran
Veteran
Joined
Mar 14, 2012
Messages
490
Reaction score
61
First Language
German
Primarily Uses
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.
 

Hierophant

Veteran
Veteran
Joined
Jul 8, 2012
Messages
122
Reaction score
1
First Language
French/English
Primarily Uses
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!
 

Necromus

Veteran
Veteran
Joined
Mar 14, 2012
Messages
490
Reaction score
61
First Language
German
Primarily Uses
Your welcome :)
 
Joined
Mar 3, 2012
Messages
1,012
Reaction score
283
First Language
Finnish
Primarily Uses
:) 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.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top