When we decided we wanted a jetpack in the game, ‘this’ was not in our mind. You can clearly see in this GIF, that the player decides to give up on us and our testing map to pursue his life dream of becoming a faraway star. To be honest, I did not imagine that this would happen when I tweaked the formula for the flight mechanics. Who would have thought, that if you try to oversimplify the code, it falls apart. After 10 minutes of continuous laughter and a phase of questioning my abilities at coding, I managed to fix the player jetpack launch.
For the technical stuff now. This all happened because the jetpack does not apply a force to the player, but instead changes the gravity multiplier. When I tried different formulas, the gravity multiplier variable got some extremely big negative values, which turned out to be catastrophic (in a funny way though). At least this extremely flawed line of code got fixed and the jetpack works just fine now.
Stay tuned for more updates and game-breaking bugs (because let’s be honest, the more bugs the merrier).
This was Serafeim, signing out.
0 comments