[Solved]Text displayed for a very short time

Hi, I made this event to show time in sec from the start of the game when game is over but the text appears only for a moment and then disappears. What I did wrong?

The problem is that your condition is that ball must be in collision with square, but you’re deleting the ball immediately.

The display score should be in its own event with a condition something like Variable gameend = 1 and wherever it is possible for the game to end, set Variable gameend = 1. When the game starts, set Variable gameend = 0.

Thanks!