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!
Comments 4
i’m so so excited for this lmao
LETSGOOOOO starborn devlogggggg
@tongyu im so glad!!! cant wait to share more of this soon heheh :D
@Snxhit YESSSSS
Sign in to join the conversation.