PDA

View Full Version : platform game button in movie clip


hkactivity
05-02-2009, 09:34 AM
Hey guys

basically I have a platform game and I am having a slight problem with getting the replay button to work. Whenever my character dies, a replay button will appear and I inserted the following code which works fine.

on (release) {
_root.gotoAndPlay(1);

but then say if I move further on into the platform game. When I press the replay button again then nothing will show up. I've read something about some quit to frame function or something along those line to avoid this problem but cannot find it. Anyone can help me?

bluemagica
05-02-2009, 02:22 PM
I don't think there's a direct common solution to this, i believe you need to create a function to re-initialise the variables and mcs! If possible, please show your code!