groggle
09-09-2009, 02:52 AM
Hello,
I am currently learning Actionscript2 and I am trying to get an end of game screen/keyframe to be triggered at the end of a maze. I am using hitTest between a movie clip (alpha at 0%) and my player at the exit (enclosed in an if statement) and attachMovie to try to display this end of game screen. It's not working. The player gets stopped at the exit and nothing is triggered. The code is a modified version of what my instructor gave me in an .fla that has an added timer function that I don't want to use. I can paste the code but I kind of want to figure this out for myself if I can without any straightforward answers. So far in searching on the internet I can't figure out why this wouldn't work.
I also tried a gotoAndPlay("frameName"); version that also didn't trigger correctly.
Any suggestions?
I am currently learning Actionscript2 and I am trying to get an end of game screen/keyframe to be triggered at the end of a maze. I am using hitTest between a movie clip (alpha at 0%) and my player at the exit (enclosed in an if statement) and attachMovie to try to display this end of game screen. It's not working. The player gets stopped at the exit and nothing is triggered. The code is a modified version of what my instructor gave me in an .fla that has an added timer function that I don't want to use. I can paste the code but I kind of want to figure this out for myself if I can without any straightforward answers. So far in searching on the internet I can't figure out why this wouldn't work.
I also tried a gotoAndPlay("frameName"); version that also didn't trigger correctly.
Any suggestions?