Please help me.
- Problem: I have some Image Sprite in a canvas. I want to code when I drag 1 Image to another Image (use Collided) then 2 Image swap position together.
- Ex: Before drag: Img1 (x1,y1); Img(x2;y2)
After drag: Img1(x2,y2); Img2(x1;y1)
- My code is no issue when I use the exact names of Img1 and Img2. But when I use “Any Img”, its doesn’t work. Because I have many Img.
Thank for any help