I have the following code as a pause button as my game is run threw a timer...
When i press space the pause MC appears and then disperes. I know why this happens but i cant figure out a way around it...Code:onClipEvent (enterFrame) { _root.frame = _root.timer._currentframe; if ((Key.isDown(Key.SPACE)) and (_root.pauser._currentframe == 1)) { _root.timer.gotoAndStop(_root.frame); _root.pauser.gotoAndStop(2); } else if ((Key.isDown(Key.SPACE)) and (_root.pauser._currentframe == 2)) { _root.timer.gotoAndPlay(_root.frame); _root.pauser.gotoAndStop(1); } }


Reply With Quote