How to pause/resume a tween/juggler?

30 views
Skip to first unread message

Joey Z. Wang

unread,
Oct 5, 2019, 2:41:46 PM10/5/19
to StageXL
Hi,

I need to implement a pause/resume function for a game. I can pause/resume an audio track but don't know how to do it for a tween/juggler. Could someone help here?

Thanks!

- Joey

Joey Z. Wang

unread,
Oct 5, 2019, 2:44:40 PM10/5/19
to StageXL
Just found this in stagexl doc:

_pauseGame() {
  renderLoop.juggler.remove(juggler);
}

_continueGame() {
  renderLoop.juggler.add(juggler);
}
I guess this would be the one.

- Joey
Reply all
Reply to author
Forward
0 new messages