[AS]onClipEvent (enterFrame) {
if (_root.mario.hitTest(this)) {
if(!this.addtohealth){
_root.health.prevFrame();
this.addtohealth ;
}
this.gotoAndStop(“done”);
}
}
[/AS]
I have this code…And it works fine only I want to move say 3 frames back instead of one. So I tried the below script
[AS]onClipEvent (enterFrame) {
if (_root.mario.hitTest(this)) {
if(!this.addtohealth){
_root.health._currentframe - 3
this.addtohealth ;
}
this.gotoAndStop(“done”);
}
}
[/AS]
But that didn’t work…So If anyone knows how I can move more than one frame back it would be a big help! Thanks in advance :).