00:00
00:00
Newgrounds Background Image Theme

Neptuno84 just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Medal does not appear

381 Views | 0 Replies
New Topic Respond to this Topic

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 !!