Worked on the player’s core movement today! I implemented horizontal movement using Unity’s new input system and handled the actual movement in FixedUpdate() by directly setting the rigidbody2D’s velocity. I also added sprite flipping by changing the player’s x scale based on movement direction.
I then implemented jumping with a ground check using an OverlapCircle, so the player can only jump while grounded. Finally, I added variable jump height by cutting the player’s upward velocity when the jump button is released early.
This is the first time i’m seriously making a game so this took me embarrassingly long lol but well everyone starts somewhere!