You can stop Action
s by:
- removing them with
actor.removeAction(Action)
oractor.clearActions()
- you can override the
actor.act(delta)
method, and ifgameOver
is set don't update theActor
(don't callsuper.act()
) - In the
render
don't callact
for thestage
, ifgameOver
is set
So basicly the Action
s get updated in the act
method of Actor
. If your gameOver
is set to true
you can simply stop the Stage
from updating:
In Render:
if (!gameOver) {
stage.act();
}
stage.draw();