Pause/ Resume animation

Hello, i want to make a game using lvgl, and my question is, How can i Pause animation(game) and Resume it ?.

Animation is realized by task, task can only be started and deleted, not paused.

I realize the pause function of the timer by deleting and creating task :zipper_mouth_face:

but, if i delete and create again task , Could i resume game from point where it was stopped ?

@zhwxChaos I believe tasks can be paused by changing their priority to OFF.

@embeddedt good idea, i will try , thanks )

I get it…