I’m helping my friend with a game where there are carrots that increase your size. I made a complicated (It’s actually not that complicated.) jump system to keep it so the main character always jumps the same height but when you collect a carrot and it upgrades your jump the new upgraded size goes straight to the impulse and makes it jump, which messes the game up because it launches you into the obstacles. If anyone knows how to fix this problem please tell me.
This is the jump code.
(for some reason it’s coming up with a link?)