Make an object get closer to another object slowly until it explodes,Make an object get closer to another object until impact
I am making a spaceship game where the player has to slingshot his way from one planet to the other until he reaches the goal. I'm having an issues with this feature where if you stay in the planets orbit for too long the planet will suck you in and you will be destroyed however i want this to happen after 10 seconds and im having no luck doing this. The player circulates the planet and can launch themselves by pressing space to reach the next planet. So i am trying to get the player to continue circulating the planet but as time goes on they get closer and closer to the planet until the player collides with the planet and eventually explodes.
This is a link to an image of what i've done so far. https://media.discordapp.net/attachments/395332289015316485/433292697139412993/image.jpg?width=507&height=676,I