moiri / kobold

jump and run on web page
2 stars 0 forks source link

Jump on moving solid #17

Closed moiri closed 10 years ago

moiri commented 11 years ago

The jump on a moving solid feels weird. This is because during the rising part of the jump, the character is relative to the moving solid. Only as soon as the character starts to fall, the position is switched back to absolute again.

moiri commented 11 years ago

after a major change the behavior is quite nice (only ghost movables are possible now). There is still a bug: when the character is jumping off a moving solid, the collider size should change as soon as the character is left or right of the movable solid (it would not land on the movable solid anymore)

moiri commented 11 years ago

Jumping on moving solids can be disabled. a correct behavior would be to inherit the speed of the moving solid to the character and change to absolute positioning. This is not possible atm because of the implementation of the jump.