Question:

My actionscript 2.0 script isnt working

by  |  earlier

0 LIKES UnLike

//hey guys i recently made this script//new code i made

//basicly when my char hits the target that has this script, i want him to move on to the next frame/level. but for some reason its not working, is there something wrong with my script? (ps im using instance names my chars instance name is char)

onClipEvent(enterFrame){

if(_root.char.hitTest(this)){

gotoAndStop(2)

}

}

 Tags:

   Report

1 ANSWERS


  1. Try this:

    onClipEvent(enterFrame){

    if(_root.char.hitTest(this)){

    _root.gotoAndStop(2)

    }

    }

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.