Separating touch events

Hello again!

I have a scene with a global TOUCH_BEGIN event and a Sprite with its own TOUCH_BEGIN event. When a TOUCH_BEGIN event happens outside the area of the sprite everything works fine and the global TOUCH_BEGIN function is called. However when a TOUCH_BEGIN event happens inside the area of the sprite, then I get some issues because both TOUCH_BEGIN functions are called. Is there a solution about separating these events, because when the sprite is touched I only want the sprite TOUCH_BEGIN function to be called and not the global TOUCH_BEGIN event function.

In the sprite event listener call event.stopPropagation()

You could also use the global touch begin listener, but check the target, and if its your child sprite, use the child sprite behavior