Godot Version
Godot 4.1.1
Question
I started with godot some time ago and last year started to make a full game for the public. I am not very good with making very clean code but it was clean enought for every thing to work until now. It started when I finished the final touches with the final boss and the final cutscene. After that, the gravity of my player started to act weird.
The no gravity is for a part in the final boss were you are “falling”. The gravity flip is for flipping the gravity of the player at some point. I set the base gravity to 500 and making sure that the velocity.y does not pass 200. This way was working perfectly before I finished the final boss and the endcutscene, but after that the player had a heavier gravity and the velocity.y did not stop at 200. And the weird part is that the enemies that have the same code work just perfectly fine. I do not know what is the problem. I was thinking that maybe I added too much stuff to the game, but I think it does not make sense. I need help.
