Game development: how to pause a game?
how pause game in order open inventory panel? think of destroying objects, removing stage , instantiating , adding stage again. don't know if going waste time doing hard way. know reliable manner , easy maintenance way this.
thanks in advance.
you need stop code continuously processing. if have timer running controls activity, need stop timer. if have enter_frame event listener active, need deactivate it... , on else running itself.
another option build conditional code event handler functions allows functions process based on boolean value... such create boolean variable named "gamepaused" , in code need have automatic activity occuring use precodnition...
if(!gamepaused){
// process activity
}
More discussions in ActionScript 3
adobe
Comments
Post a Comment