Centra
The two issues you are running into are newly created object picking and dealing with picking multiple instances of the same type separately.
Created objects become the only picked object for the the rest of the event. In the case of event 1 and 2 the 2nd spawned sprite will always have "isanswer" toggled. Also the created object object won't be able to be picked as normal until the next toplevel event (event that isn't a subevent) however a triggered event such as "on created" or a funtion call doesn't count as it's more like it's run right when it's called. Your on created event as it is has only one sprite picked (the new one) which can be somewhat solved by adding a "pick all sprite" system event, but you still won't be able to pick the other spawned sprite until the next toplevel event.
And that leads nicely into issue #2, picking multiple instances of the same type separately. There are two ways to deal with this:
* The first way is to pick one of the instances and save the values you want to compare into local variables and then pick the 2nd and do the comparison. It would look something like this:
+ Some event that picks two sprites
---local number inst0frame=0
---+pick sprite instance 0
------ set inst0frame to sprite.frame
---+pick sprite instance 1
---+compare inst0frame = sprite.frame
------ do something
* The second way is to use single object type family. So you can pick two objects of the same type separately using two different names. You can think of the family name as an alias to the object name. Events would look something like this:
+ Some event that picks two sprites
---+pick family1 with uid of sprite.uid
---+pick family1 instance 0
---+pick sprite instance 1
---+compare family1.frame = sprite.frame
------ do something
Ok, and in respect to what you're trying to do you can simplify it by putting the sprite into a family and call it say family1.
+every 3 seconds
---create sprite
---set sprite frame to random
---create family1
---set family1 frame to random
--- +while
--- +compare sprite.frame = family1.frame
-------set family1 frame to random