How to check animation of two of the same object? [SOLVED]

I want to combine two of the same object to make a different object to make a new object.
I have figured out the action, however, the objects merge with the same object WITHOUT them being the same.

This is what I am currently using:

If [Object] is in collision with [Object],
The animation of object is {1}:

Delete [Object],
Create object [Object] at position {[Object].CenterX()};{[Object].CenterY()},
Change the animation of [Object] to {2}.

Have you tried checking the animation first?

i will try that thanks

wow i didnt think that would work