becomingplural / GBS_PlatformerPlus

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

Known Issue: Gravity settings below 256 cause the avatar to float #12

Closed becomingplural closed 1 year ago

becomingplural commented 1 year ago

Setting the gravity to something below 256 causes the current setup to move less than 1 full pixel each frame, which in turn means that the character cannot stay grounded. This is because the grounded state sets downward velocity to 0 each frame.

A possible fix is to set the downward velocity to a higher limit on grounded, but this could cause problems for the way solid-actors are setup.