Pls help me to understand:
I want to have two different functions on Flung and Touch to ImageSprite, is it possible?
In my .aia file you can Flung image (it will slide image to left-right) and Touch it (it will change image Color).
When we flung image, the Touch function works too.
But I want to have Flung and Touch functions separately. How to achive this? Flung_VS_Touch.aia (3.4 KB)
Touched( x , y )
When the user touches the sprite and then immediately lifts finger: provides the (x,y) position of the touch, relative to the upper left of the canvas.
"Immediately". But even if I Flung very slowly, anyway the Thouch function works.
you can try to check the speed or heading in the Flung event...
it it is only a Touch, then these values probably are very small?(just guessing here...)
It works, but not completely correct. After flung, you have to touch twice for the Touch event to happen. Unfortunately, the Touch event is executed first, then Flung, which complicates the matter.
Maybe if you use the TouchDown and TouchUp events, and save the locations and times (ms) of those events, you could use that data to distinguish between a simple touch and a Fling?