cykod / Quintus

HTML5 Game Engine
http://html5quintus.com
GNU General Public License v2.0
1.41k stars 401 forks source link

[Question] Collision area #194

Closed lplume closed 2 years ago

lplume commented 6 years ago

Hello, im wondering if is it possible, and how, to add a different type of collision.

Immagine a sprite has an "area of influece" how i can detect other sprites join that area?

I mean, the violet rectangle marks the "builtin" collision mask, suppose i want to be able to trigger an event when another sprites hit/enter the pink area, can someone point me out how to achieve this?

Thanks sample