WOW! Thank you so much for your detailed help with this one!!! I don’t know what to say… wow!
Just saw your post and will look into this asap.
- Daniela
WOW! Thank you so much for your detailed help with this one!!! I don’t know what to say… wow!
Just saw your post and will look into this asap.
Btw, I think 13 is the best value to use, in this particular case:
physics.addBody( flower, { outline=graphics.newOutline( 13, "flower.png" ), isSensor=true } )
Thanks again!!!
I still have one other problem with the masked areas (from my first question):
I worked with the solution for the exact masked area recognition you gave me and now I don’t want to check the coordinates of the finger but instead an offset point to those coordinates… means I don’t want to know if the finger position is leaving the masked image but instead if another point on the screen is leaving the masked image. This point is an offset value to the finger position.
Can this be done somehow without using physics?
Well, that’s just what I’m doing with the code above. I’m using a sensor physics object on the tip of the finger image to know when the finger is touching the flower. If you want a different point, just move that sensor.
I should add that the original solution I gave you is no longer relevant, because of the use of physics to detect the touch location, but that should be obvious by now.
I just wondered if I can somehow do this without the physics?