I wrote this script for pause game and change animation. but before change animation game paused can any one help me for fix this Problem?
- Code: Select all
if (pause == 0)
{
ChangeAnimation("MenuBotton", "PlayBotton", NO_CHANGE);
pause = 1;
PauseGameOn();
}
else if (pause == 1)
{
ChangeAnimation("MenuBotton", "PauseBotton", NO_CHANGE);
pause = 0;
PauseGameOff();
}