- Home /
Question by
$$anonymous$$ · Feb 11, 2019 at 05:55 AM ·
androidtouchdragtouchscreenswap
Drag and Swap two object using touch
The game has 4 objects with sprite side by side. I want the game to swap the position of two objects when I drag one object and move it towards the second object (dragged object should move to second object's position and the second object should move to dragged object's position). As of now, I can only drag one object and move it towards the second object. However, I am not able to swap their position? Can anyone kindly suggest me on how to do it? Thank you so much for your time and consideration
Comment
Your answer
Follow this Question
Related Questions
Touch Input madness 2 Answers
Problem with touch button (when moved) 2 Answers
Build an text editor in unity 3d 0 Answers
,How Do get Touch input to work with the Player Input Component 1 Answer
How to Touch Drag 3D Objects 2 Answers