I have two sprites with the same 15 animations and with 10 frames with images each of them. Some images are the same and some are not and the equal images can be in the same frame number or not. The programa will choose an animation and a frame number randomly for each sprite and before the program spawn the sprite1 and the sprite2, it needs to check if they have the same animation and after that, if the frames have the same image. I already created the system that check the animations but I don't know how to check the frames once the possibilities are so huge.
For example, imagine that each frame store a image with a number and the program choose the animations below:
Animation1 = 1 | 5 | 7| 11 | 32 | 56 | 18 | 2 | 42 | 61 |
Animation2 = 7 | 4 | 0| 11 | 32 | 90 | 20 | 3 | 61 | 11 |
If the system choose the frame 4 (11) for both animations or frame 10 for sprite1 (61) and frame 9 for sprite2 (61), it needs to choose another frame for both animations automatically. The problem is that I have 15 animations with different combinations. Any idea?