Principle behind pausing a game

Hi all

I’ve been trying to add a pause function to my game. I’ve read tutorials saying that I should refer the player to a new frame to pause the game. I’ve seen programmers using _visible variable to toggle a message and pause the game in the same frame as the game.

What is the principle lying behind such pausing functions? Is there some built in functions?

Thanks.