Hi! I'm having a problem with my new prototype. I have tried to solve it for a few days now, but haven't been able to do it, so decided to ask you guys for help.
My project is a gravity-based platformer game, where you can fly a spaceship in a planet's atmosphere and also in space, where the planet's gravity doesn't affect it. When the spaceship is in the planet's atmosphere, I have used the "platform behavior" to get the gravity to work. The player's angle and angle of gravity are both towards the middle of the planet.
When the spaceship exits the planet's atmosphere, I want the angle of gravity and the spaceship's angle to reset so that there I can create an Asteroids- type movement. (see the attached pic).
So: I get the movement to work in the atmosphere and space the way I want, but I can't get them to work in the same preview. Only one of those work.
Details for the picture:
1. The spaceship is in the surface of the planet, and player can get in and out of the spaceship.
2. The spaceship is in the planet's atmosphere, and affected by the gravity of the planet. The spaceship can move up, right and left (made with the x- and y-vectors of Platform Behavior). The bottom of the spaceship faces the planet at all times.
3. The spaceship is in the non-gravity area (space) and is not affected by any gravity. It can move in similar way as in the game Asteroids.
Sorry for the confusing text and thank you in advance for any help! Feel free to ask for more details if needed. Unfortunately I will not add the .capx file to this post because it is waaay too confusing at the moment.
-Sentenc3d1