Hi I'm working on a new game and want to add it medals.
I already connected the API, created the medals and they initialized at the output, also I put the Medal Popup on stage. Im using Action Script 2.0 and Flash CS6
When I test the game on my computer the medal doesn't appear and also it's still locked; I also test it on Preview mode and neither works. ¿Why?
This is the code in putting on the frame where is supposed to appear the medal.
stop();
import com.newgrounds.*;
function medals(){
if (_root.good._currentframe == 10){
API.unlockMedal("Brain");
}if(_root.wrong._currentframe <=7){
API.unlockMedal("Pinky");
} if(_root.good._currentframe == 6 or _root.good._currentframe == 7){
API.unlockMedal("Like");
}
}
Thanks !!