How to detect if actor is still touch another actor.
JamesBoucher
Member Posts: 433
In my game i need to know if an actor is still overlapping another actor. I can have an actor overlapping three to four actors at once. Also the actors can move in and out from under the overlapping actor.
Any ideas on how to determine this?
Any ideas on how to determine this?
Comments
Yes I know how to use the collide rule, but that does not tell me all actors still in collision at the time the user lefts his touch.
If this don't work, you can try to check if the X attribute of the little actor are between the X attribute of the big actor less half of the width size and the x attribute of the big actor plus half of the width size.
But like this, if one of the little actors is away just of half and 1 pixel from the big actor, it will not count as in collision.