that or suppose ur game has a end platform
you can put a event when your player collides with the end platform or ending flag or any ending point it uses action Go to layout
so basically
"Player" collides with "Finishing Line" - Action( Go to layout)