You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it should be documented as a quick tip/tutorial in the docs, because one will never guess on how to do that, even with Pixi.js docs.
From Discord server:
If you are using ct.delta all over your game code, a simple line [...] must effectively disable motion of everything that uses that ct.delta. Default movement system with this.speed and this.direction is included here as well. At this point, the game loop will still work, meaning that UI and stuff will be responsible.
To set ct.delta back to normal, run [...].
So you need to:
Spawn a pause menu;
Set both tickers to 0;
Set them back to 1 when a player presses the "unpause" button
The text was updated successfully, but these errors were encountered:
In GitLab by @Comigo on Feb 24, 2019, 21:57
The code to pause the game is as following:
And, to unpause:
But it should be documented as a quick tip/tutorial in the docs, because one will never guess on how to do that, even with Pixi.js docs.
From Discord server:
The text was updated successfully, but these errors were encountered: