Lemmings Forums

Other Lemmings Projects => Loap => Closed Loap Bugs / Suggestions => Topic started by: namida on July 07, 2022, 11:42:18 AM

Title: [BUG] Rope-sliding lemming displayed too low.
Post by: namida on July 07, 2022, 11:42:18 AM
This is a purely visual bug; the underlying physics work correctly. When a lemming uses a rope slide, its sprite is displayed lower than it should be.

Complicating this is that the offset is not always the same. It's usually about two slabs height too low, but eg. in Mayhem 64 "Ski Jump" it's only about one slab.
Title: Re: [BUG] Rope-sliding lemming displayed too low.
Post by: namida on July 16, 2022, 11:00:39 PM
With some further testing:

If the rope slide is flat - the lemming appears 2 slabs too low
If the rope slide is 22.5 degrees downwards - the lemming appears about 1 to 1.5 slabs too low
If the rope slide is 22.5 degrees upwards - the lemming appears about 1 to 1.5 slabs too low
If the rope slide is 45 degrees downwards - the lemming appears correctly
If the rope slide is 45 degrees upwards - the lemming appears about half a slab too low

(All distances in this post are still estimates.)

Note that the first case, a flat rope slide, never appears in any offiical level, nor in any custom level so far outside of one made specifically for testing. One could argue that instead, the rope slide itself should be placed two slabs lower in this case - that would make more sense visually anyway, IMO.
Title: Re: [BUG] Rope-sliding lemming displayed too low.
Post by: namida on July 16, 2022, 11:38:47 PM
I have done further testing and confirmed the distances:

Flat - 2.25 slabs
22.5 down - 1 slabs
22.5 up - 1.5 slabs
45 down - No error
45 up - 0.5 slabs

Now, ideally I need to work out a formula to calculate this offset (if nothing else, so that it doesn't crash or glitch with rope slides that aren't one of those angles exactly, as it may do with hardcoded values only for those angles).
Title: Re: [BUG] Rope-sliding lemming displayed too low.
Post by: namida on July 16, 2022, 11:56:11 PM
Fixed in commit 9635295.