Hi guys, I'm trying to create a swipe effect to cut trees as they appear from the right of the screen. I don't know the right way to do swipe gestures, so I made up my own inefficient workaround, it almost works but I can't make it so players only swipe and destroy one tree at a time...
Attached is my MMF file...
Please login to see this attachment.
1. Ok, so every few seconds a tree is created to scroll from the right to left...
2. with the tree is a purple and light blue box (these will be invisible, I left them visible so you can see them) that stay with the tree. They're like invisible detectors...
3. player swipes left to right at the tree, destroying the purple then the blue box. If blue box is destroyed, only that particular tree *should* be destroyed...
But... some bits get left on the screen, new trees appear without the 'detectors' etc...
Does anyone know how to do a swipe gesture please??
Many, many, many thanks if you can show me how this is done, or improve my amateur 'code'.