So I just found out that I can jump using the CompareTag with the OnCollisionStay2D if I tag all the platforms as “Ground” just like what we did with the Layer. So I’m wondering what’s the difference between using the CompareTag(“Ground”) and the LayerMask.GetLayer(“Ground”)?
The Taggy way
Then I use getKey.Space and AddForce to make it jump.
The Layer way
Don’t mind the isGrounded and the comments tho, they r just there to help me understand the code in the future.