What's the best way to detect when an actor STOPS overlapping another? In effect, the equivalent of a mouseOut in javascript, but based on actors, not the pointer.
Would that not activate immediately, seeing as how the objects are not initially overlapping?
Just tried it, and yeah, it does...BUT, it also gives me an idea for a couple of flags that will tell me when an actor 'leaves' another.
Set a boolean called Over to false. In the otherwise of the collide, check to see if it is true before executing. Set Over to true when the actors collide.
Comments
Roy.
Just tried it, and yeah, it does...BUT, it also gives me an idea for a couple of flags that will tell me when an actor 'leaves' another.
Set a boolean called Over to false. In the otherwise of the collide, check to see if it is true before executing. Set Over to true when the actors collide.
Nice! Thanks for your help and inspiration, Roy!
Glad to help.
Roy.