Any suggestions for the best approach to check (in realtime) if a moving touch event stays within display object?
So in further detail, assume the scenario is:
i ) there is a display object (might be a polygon shape, rectangle, image etc)
ii) the display objects moves randomly around the screen
iii) the player has to touch (and hold down) and move their finger around keeping it within the bounds of the display object
iv) if the user doesn’t stay within the bounds then an event fires to raise this as FAIL
I guess the question is whether there is an approach in Corona where Corona could fire the event for you? Or whether there is not and it is just up to you as a developer to check enterFrame and manually (somehow) do a check, whereby you might have to approximate the shape using a circle for ease in doing the geometrical isTouchPoint within object boundary calculation?
PS. Also should mention it will be a “multi-touch” scenario. Perhaps image there are two display objects moving around. Not sure if this would affect whatever solution that might exist.