I was making simple platform mechanics. I used a kinematic player with a rectangle collision shape. i used this code for the horizontal movement:
move_local_x(horizontal_movement, false)
the horizontal movement variable is an integer that either 1, 0, or -1 depending on the players input, and then mutiplied times the speed variable and delta.
this all worked fine, but then I tried implementing gravity the same way:
move_local_y(gravity * delta, false)
this also worked, but when I added a ground with a collision shape 2d, the character passes through it!
Is this the fault with the code, or is it something else?