becomingplural / GBS_PlatformerPlus

Platformer+ Plugin for GBStudio
MIT License
34 stars 3 forks source link

Setting negative y-vel on ground triggers fall state before jump state #16

Open becomingplural opened 1 year ago

becomingplural commented 1 year ago

Currently the jump state is meant to handle all upwards velocity (while neither dashing nor climbing). However, the ground state has no check for the direction of velocity. Additionally, adding one there would be slow.

Proposed solution: the Y-Collision check already does a check for upward vs. downward motion. Upward is a relatively rare case, and can have an additional state-check.