what do you mean by "set"?
do you have more than one spriteA and spriteB?
are you setting the angle once or every tick? if every tick then you need For Each then set the angle, it will go through each one. Either way you need to make sure you picking the correct object.