When actor does NOT Overlap or Collide, after 4 seconds, do XXX

VoidedSkyVoidedSky Member Posts: 1,095
edited November -1 in Working with GS (Mac)
I have been trying to do this, but it doesn't always work. Here are my rules:

---when overlap or collide with XXX, then change attribute game.collide to true
-----otherwise, change attribute game.collide to false

---when game.collide is false, every 1 second, change attribute, game.collisionCount to game.collisionCount+1
----otherwise, change game.collisionCount to 0

---when game.collisionCount is greater than or equal to, then do [something]

This works most of the time, but if the actors are in the collision area, and then move within the area, then it doesn't recognize that they are overlapping with the overlap actor. I hope I was clear enough. Any ideas?

Thanks

~CTM

Comments

Sign In or Register to comment.