When I press X on the keyboard while moving in my game the gravity flips and my sprite stays connected to the collision box, but when I use Y on the gamepad he slowly starts to drift away form the box, despite having the exact same code, just using an "or" expression to check for X keyboard key or Y button.
Any thoughts?
thank you!