We have decided to use tasks for our gameLoop, instead of intervals, which are easy to pause.
I have not been able to find anything about pausing tasks
Does anyone know of a way to do it, please?
Anyway, I am working my way around it, if it is impossible to pause the task:
I simply subtract the time passed during the paused loop on the clock.
We use DirectLabel to display the clock:
self.guiTimerLabel = DirectLabel()
Now I would like to write “Game is paused” instead of displaying the time (which flickers due to my trick) - but how do I clear the text string in the Label?
Right now my new text is displayed on top of the old … not very elegant
Thanks for your attention.