Using multiple clock will crash the app

Hi, I was making a simple wack a mole game that has 2 screen where one has game screen and other screen shows the high score. And I have a button that moves from one screen to another. But whenever I try to move from high score screen to game screen, the app crash. I notice that in game screen, I have a 2 clock that will call Timer in code (picture below) that use for game and that seems like the cause of the crash.

So I want to ask why is causing the crash and whether there’s any fix to this or is it having multiple clock in 1 screen is a bad practice? Thanks.

Stop any clocks before switching screens

Thank you. That fixed the issue.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.