when my character's face direction look toward to sprite's moving direction, collision will occur and we get the point.
When my character direction is not looking to sprites direction, sprite will just bounce from our character.
Develop games in your browser. Powerful, performant & highly capable.
I would think the easiest way to do this would be to have an invisible solid sprite at the same position as the player (for sprites to bounce off when you're not looking) and then edit the collision polygon of the player character to only be on the 'facing side'. If that makes sense. No idea how well that would work but that's what I'd try.
Thank you !
I tried and it worked.