Create a global variable for each object with the same name of the object and wright conditions for each
Target > Animation frame = 0 > System > Set Value > Target_Variable = 0
Target > Animation frame = 1 > System > Set Value > Target_Variable = 1
Target > Animation frame = 2 > System > Set Value > Target_Variable = 2
Target > Animation frame = 3 > System > Set Value > Target_Variable = 3
Object1 > Animation frame = 0 > System > Set Value > Object1_Variable = 0
Object1 > Animation frame = 1 > System > Set Value > Object1_Variable = 1
Object1 > Animation frame = 2 > System > Set Value > Object1_Variable = 2
Object1 > Animation frame = 3 > System > Set Value > Object1_Variable = 3
Object2 > Animation frame = 0 > System > Set Value > Object2_Variable = 0
Object2 > Animation frame = 1 > System > Set Value > Object2_Variable = 1
Object2 > Animation frame = 2 > System > Set Value > Object2_Variable = 2
Object2 > Animation frame = 3 > System > Set Value > Object2_Variable = 3
Then
Create a function and put the following conditions in it
System > Target_Varable = Object1_Variable > Set Value ObjectIdentical = 1
Else > (Do Nothing)
System > Target_Varable = Object2_Variable > Set Value ObjectIdentical = 1
Else > (Do Nothing)
When you press spacer bar, call the function. The default value of ObjectIdentical should be 0.
I don't know the particulars of your code but when the game resets with new animation frames to compare, you need to create or add an "Event" to set the value of ObjectIdentical variable back to 0.
I also don't think you need to use every tick. When a global variable has a value, it is always every tick.
As I just thought about it, you could just do this:
Just create the Target_Varable and write it like this:
System > Target_Varable = Object1.AnimationFrame > Set Value ObjectIdentical = 1
Else > (Do Nothing)
System > Target_Varable = Object2.AnimationFrame > Set Value ObjectIdentical = 1
Else > (Do Nothing)
Hope this helps