fun bug in kitsune tails today. sometimes people would clip through moving platforms that were going up and fall down under them. no idea why it was happening, virtually impossible to replicate
until i stepped through footage of it happening with an upwards crusher and i noticed the character was not stuck to the crusher but hovering slightly above it right before the clip. so clearly, they were jumping
i eventually realized that the collision checks if there's a collision with the top or bottom of your vertical collision box, and then pushes you up or down
but it also checks (for safety!) that you're moving up or downwards, so if the bottom half of your collision box clips a corner and you're jumping up, it doesn't suck you down onto the tile
this works great! except when tiles move. if a crusher moves up faster than the player, that check skips the collision, which puts you into solid geometry and spits you out the other side
fix was to also check if the layer is moving up or down, not just the player
like this
Jonathan Lamothe
in reply to Eniko Fox • •like this
Eniko Fox, clacke: exhausted pixie dream boy ๐ธ๐ช๐ญ๐ฐ๐๐ and eestileib (she/hers) like this.
Eniko Fox
in reply to Eniko Fox • • •Jonathan Lamothe likes this.
Blortโข ๐โ๐ฅโฃ๏ธ
in reply to Eniko Fox • • •Even when you simulate all of the physics perfectly, it's never what the actual players expect, so you end up having to hack physics in a bunch of weird ways (and then hacking in extra to deal with unforseen side effects) just to get things to work vaguely like what players expect would just happen automatically.
Moving platforms are a nightmare.
BYOBattleship
in reply to Eniko Fox • • •Eniko Fox
in reply to BYOBattleship • • •Jari Komppa ๐ซ๐ฎ
in reply to Eniko Fox • • •Eniko Fox
in reply to Jari Komppa ๐ซ๐ฎ • • •Stygian Abyss Pie Factory
in reply to Eniko Fox • • •Eniko Fox
in reply to Stygian Abyss Pie Factory • • •Stygian Abyss Pie Factory
in reply to Eniko Fox • • •it's honestly a pretty high level overview, but the section on slopes had everything just sorta click for me
higherorderfun.com/blog/2012/0โฆ
The guide to implementing 2D platformers | Higher-Order Fun
higherorderfun.comAdrew
in reply to Eniko Fox • • •Eniko Fox
in reply to Adrew • • •Adrew
in reply to Eniko Fox • • •Eniko Fox
in reply to Adrew • • •Keith Evans
in reply to Eniko Fox • • •Liam
in reply to Eniko Fox • • •Eniko Fox
in reply to Liam • • •@ThePlant did those
i even made it so you can have moving slopes intersecting other (moving) slopes
Liam
in reply to Eniko Fox • • •Garret Polk (masked)
in reply to Eniko Fox • • •Joacim Jacobsson
in reply to Eniko Fox • • •Joacim Jacobsson
in reply to Eniko Fox • • •Gorgeous na Shock!
in reply to Eniko Fox • • •BenJoe
in reply to Eniko Fox • • •AL Wyvern
in reply to Eniko Fox • • •clacke: exhausted pixie dream boy ๐ธ๐ช๐ญ๐ฐ๐๐ likes this.
Eniko Fox
in reply to AL Wyvern • • •clacke: exhausted pixie dream boy ๐ธ๐ช๐ญ๐ฐ๐๐ likes this.
Jonathan Lamothe
in reply to Eniko Fox • •like this
clacke: exhausted pixie dream boy ๐ธ๐ช๐ญ๐ฐ๐๐ and Eniko Fox like this.
Eniko Fox
in reply to Jonathan Lamothe • • •AL Wyvern
in reply to Eniko Fox • • •Cheeseness
in reply to Eniko Fox • • •