I have problems pause my character. My pause button works perfectly, it pauses all other objects but i can still move my character when posted.
Hope anyone can help me
Download the source file i added
I hope you can help me fix my problem!
here is the code i’m using. I’m puting this in my frame of my game
var playing:Boolean = false;// stop the main movie
stop();
play_btn._visible = false;
pause_btn._visible = true;
// create an event handler for the play button
play_btn.onPress = function()
{
playing = !playing;
play();
this._visible = false;
pause_btn._visible = true;
};
pause_btn.onPress = function()
{
playing = !playing;
stop();
this._visible = false;
play_btn._visible = true;
};