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 | Kitsune Tails out now! • •like this
Eniko | Kitsune Tails out now!, clacke: exhausted pixie dream boy 🇸🇪🇭🇰💙💛 and eestileib (she/hers/emacs) like this.
Eniko | Kitsune Tails out now!
in reply to Eniko | Kitsune Tails out now! • • •Jonathan Lamothe likes this.
Blort™ 🐀Ⓥ🥋☣️
in reply to Eniko | Kitsune Tails out now! • • •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 | Kitsune Tails out now! • • •Eniko | Kitsune Tails out now!
in reply to BYOBattleship • • •Jari Komppa 🇫🇮
in reply to Eniko | Kitsune Tails out now! • • •Eniko | Kitsune Tails out now!
in reply to Jari Komppa 🇫🇮 • • •YES I CHECKED THE BREAKER
in reply to Eniko | Kitsune Tails out now! • • •Eniko | Kitsune Tails out now!
in reply to YES I CHECKED THE BREAKER • • •YES I CHECKED THE BREAKER
in reply to Eniko | Kitsune Tails out now! • • •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 | Kitsune Tails out now! • • •Eniko | Kitsune Tails out now!
in reply to Adrew • • •Adrew
in reply to Eniko | Kitsune Tails out now! • • •Eniko | Kitsune Tails out now!
in reply to Adrew • • •Keith Evans
in reply to Eniko | Kitsune Tails out now! • • •Liam
in reply to Eniko | Kitsune Tails out now! • • •Eniko | Kitsune Tails out now!
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 | Kitsune Tails out now! • • •Garret Polk (masked)
in reply to Eniko | Kitsune Tails out now! • • •Joacim Jacobsson
in reply to Eniko | Kitsune Tails out now! • • •Joacim Jacobsson
in reply to Eniko | Kitsune Tails out now! • • •Gorgeous na Shock!
in reply to Eniko | Kitsune Tails out now! • • •BenJoe
in reply to Eniko | Kitsune Tails out now! • • •AL Wyvern
in reply to Eniko | Kitsune Tails out now! • • •clacke: exhausted pixie dream boy 🇸🇪🇭🇰💙💛 likes this.
Eniko | Kitsune Tails out now!
in reply to AL Wyvern • • •clacke: exhausted pixie dream boy 🇸🇪🇭🇰💙💛 likes this.
Jonathan Lamothe
in reply to Eniko | Kitsune Tails out now! • •like this
clacke: exhausted pixie dream boy 🇸🇪🇭🇰💙💛 and Eniko | Kitsune Tails out now! like this.
Eniko | Kitsune Tails out now!
in reply to Jonathan Lamothe • • •AL Wyvern
in reply to Eniko | Kitsune Tails out now! • • •Cheeseness
in reply to Eniko | Kitsune Tails out now! • • •