When actor does NOT Overlap or Collide, after 4 seconds, do XXX
VoidedSky
Member Posts: 1,095
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
---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
I use the Bombs to move the blocks out of the orange area. Then when there are no more blocks in the orange area for 4 seconds, then you go to the next level. How can I check to see if there are blocks in the orange area? I hope this explains what I would like to do better then above.
Thanks in advance!