Whenever you have 'score = score + 1;' -- "when the score changes", check it for X value immediately after the change:
if (score == 'X')
and play the gif if the score is X. It will only play once because the score will only CHANGE to that value once. The score may stay at that value, but it would not be changing during that time -- so, the gif will not play again.
Hello,thanks for replying. How do i syntax the gif code? Do i place it as addObject after i set it as an image in the class i want? How do i syntax it? Thank you!