- Home /
Figured it all by myself :D dem feels
Unity2D iOS Dragable items by touch
Hi! So I have this 2D game where I am trying to touch drag through a few instantiated items.What I am trying to do is something like this: http://1.bp.blogspot.com/-bxR0qNFKjRk/UjukWwM4XkI/AAAAAAAAEZA/L25Ps12ycSM/s1600/iOS7+main+timer.jpg On the example above on the right picture i mean when you are selecting the minutes by draging the list of minutes. Now my objects are instantiated at runtime and i have a swipe script but I am not sure how to change all those individual items at once(there are 8 or 10 on top of each other).And also i am guesing that i have to transform the objects position Y by transforming theyr position to the Y and +/- the amount of draging.Any help is appreciated.Thank you
Ok so i found out how to acces all objects with the same tag.Now i am trying to move them with a foreach loop in TouchPhase.$$anonymous$$oved but i am kinda failing.
Follow this Question
Related Questions
player jump on mousedown and swipe 0 Answers
Time.deltaposition problem on multiple devices 2 Answers
Is there a way to optimize Input.GetAxis on windows phone? 1 Answer
Detect the swipe and add force respective to it? 3 Answers
unity2D touch drag 0 Answers