I want it so that when the players score is equal to or greater than 20 it destroys my objectwhich is a frame labelled “off” and when the score is lower than 20 it is on which is a frame lebelled “on”. Can anyone help me?
This is the code I have:
onClipEvent (load) {
if (_root.score>=20) {
this.gotoAndStop("off");
}
}