supertux
supertux copied to clipboard
Unexpected death when throwing rock at wall while running at wall after moving either direction
**SuperTux version: 0.6.3 **
Expected behavior
Tux throws rock
or other portable object while running at a wall, when the rock falls on tux after being thrown in the air, Tux should not be clipped partially or half inside of the wall (or in other words) in between the rock and the wall. Note that depending on how far the rock bounces off the wall after being thrown, tux still shouldn't clip in between the rock and the wall or the floor depending on the amount of tiles there are below tux, instead tux should teleport off to the side.
Actual behavior
If tux moves left when tux was moving to a right wall and threw a rock, then the rock fell on tux if tux was standing still or not, causes death if tux moves left. Same thing occurs if tux threw a rock and ran toward a left wall, then moved right. If tux isn't moving or jumps, it does not result in death.
Steps to reproduce actual behavior --- Make a level with any solid square tile that has a solid square hitbox (no slopes) with a floor and 2 walls, one left and one right.
--- Add a rock in the level.
--- Test the level, use cheat menu or bonusblock to give tux a flower. You can use big tux without a flower but tux would be hurt then changed into small tux which would result in death (sometimes).
--- Pick up the rock and start running toward either wall, then throw the rock when you are close to reaching the wall, then stop at the wall and wait for the rock to fall down on tux. Either 2 things will happen: Tux will be clipped half or partially in between the wall and rock, or tux will clip through the floor depending on how far the rock bounces off the wall. Turn on collision rects if needed.
Additional debugging information:
https://user-images.githubusercontent.com/83178674/154619779-da96945b-598e-4596-8a50-608dd3088590.mp4
not really sure why you labelled this as unexpected. i think its pretty intuitive to not throw objects onto your head... you're obviously going to get crushed or damaged in some way??