Hello Guys!
Ive got a question about matching two objects based on their position. Basically i got two Sprites, each filled with 10 animation frames. One of this sprites containes spots and the other sprite contains dragable spriteimages.
So i want to place the dragable sprites (sprite frame animation 3) to the corresponding spot sprites, i have placed on the layout (on the sprite animation frame 3). It should snap if you release the dragable sprite near the right spot sprite.
-> compare the sprite.iid (dragable) with the sprite.iid (spot) -> if sprite.iid (dragable) = sprite.iid (spot) then place the dragable sprite onto the position of the spot sprite (with position threshold)
-> How can i compare two positions of the same UID objects from two different sprites? (for excample UID 2 spirte positions should be compared)
The game iam working on is remember details, where you have to drag objects onto the right places.
Thank you very much - i hope my description is understandable