#2D Movement Physics Problems

5 messages · Page 1 of 1 (latest)

thorn marsh
#

I'm trying to practice by coding in 2d movement physics. However, I hit a brick wall when trying to add a jump function. When I added it, it jumped too Iow. Also, when I add the" is_on_floor condition", it just won't register

spice steppe
#

A good example is the template script generated for CharacterBody2D. I always begin there and do any changes. You can compare and see why yours doesn't work.

#

sorry, away from the computer at the moment and there's no way to check it directly for you.

#

out of the top of my head, isn't your falling speed too quick with:

velocity.y = GRAVITY ?

thorn marsh