chrismaltby / gb-studio

A quick and easy to use drag and drop retro game creator for your favourite handheld video game system
https://www.gbstudio.dev
MIT License
8.54k stars 469 forks source link

Player gets stuck to slopes above it #1331

Open MechPala opened 9 months ago

MechPala commented 9 months ago

If top of player collider hits a slope when jumping, the player gets stuck.

To Reproduce

  1. Load a platformer scene.
  2. Place a slope somewhere above player where it can reach it by jumping.
  3. Jump to the slope.

Expected behavior Upon collision should cancel upward momentum and apply gravity. Should be able to move to the direction of the slope while going down.

Screenshots image

Platform (please complete the following information):

Additional context Collider size for the player character in this scenario is 5x7px.

chrismaltby commented 9 months ago

Hi @MechPala At the moment the only slopes you can create act more like floating platforms so you're able to jump through them from below, it looks like you're expecting them to act like ceilings when hit from below but at the moment that's not going to be possible.