[BUG] Rope-sliding lemming displayed too low.

Started by namida, July 07, 2022, 11:42:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

namida

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.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

namida

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.
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

namida

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).
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

namida

My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)