Is it possible to detect when object stops overlapping?

Get help using Construct 2

Post » Sun Aug 24, 2014 9:05 pm

Hi!

I'm trying to detect when a player stops overlapping another object.

The problem with writing a condition that simply says "player is not overlapping object" is that it triggers also in the very beginning.

Is there a way to write the condition so that it only triggers if the player was just before overlapping the object?
B
9
S
1
Posts: 97
Reputation: 715

Post » Sun Aug 24, 2014 9:29 pm

Try to use a boolean variable. Something like:
When the collision begins, set the boolean to true. And when it stops overlapping, false.

So.. "if THIS object isn't overlapping THAT object" and "boolean is TRUE", etc etc etc..
And don't forget to put a "trigger once while true" in this same event, if you want a trigger.
B
20
S
4
Posts: 387
Reputation: 2,274


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 27 guests