I'm touching the touch screen and a prefab is instantiated where I have placed my finger.
Now, keeping my finger on the screen, I begin to swipe.
A prefab's clone is instantiated every say 10 pixels.
The result would be something like a dotted line along the swipe path.
How do I do this?
asked Apr 29 '11 at 06:04 AM
I'd do this by testing the touch position against the position of the last prefab and if it meets the threshhold - then create a new prefab.
Here is some untested C# code (my syntax checking isn't nearly as good as a compilers):