supertux icon indicating copy to clipboard operation
supertux copied to clipboard

Walking in cramped space unexpectedly incurs hits/death

Open ghost opened this issue 3 years ago • 4 comments

SuperTux version: SuperTux_2-v0.6.2-933-g5e5e1378a.glibc2.29-x86_64

Expected behavior

Getting the fire bonus and walking off the block shouldn't kill Tux.

Actual behavior

Walking off the block to the right hurts Tux, ultimately killing him.

Steps to reproduce actual behavior
  1. Play 'Going Underground' (Forest World).
  2. Go underground and hit the first bonus block as big Tux.
  3. Jump on top of the block from left side and keep walking right.
Additional debugging information

GIF showing Tux dying

The collision box for the wall pushes Tux downward into the bonus block, which causes Tux to take a hit. If Tux was only big (and didn't have any powerup), he would now be small and wouldn't die. However, here he just got the fire powerup and therefore only loses that while remaining big. Continuing to push further right therefore kills him.

image

ghost avatar Nov 14 '21 16:11 ghost

Perhaps this is related to #990?

ghost avatar Nov 14 '21 16:11 ghost

This seems to happen because it thinks tux is getting crushed to death. Can't really blame them. It kinda does look like that.

Busybody64 avatar Nov 15 '21 14:11 Busybody64

its a pretty tricky bug to fix. rather than fixing the bug - which would change how collision intrinsically works (much harder fix) - fix the stages where the are cramped areas like this around bonuses. simple.

Alasdairbugs avatar Nov 18 '21 02:11 Alasdairbugs

Can we force Tux to crouch instead of taking damage, if he's in the cramped area? So he cannot stand up until he leaves the cramped area.

pelya avatar Jan 17 '22 00:01 pelya