Author Topic: [BUG] Rope-sliding lemming displayed too low.  (Read 731 times)

0 Members and 1 Guest are viewing this topic.

Offline namida

  • Administrator
  • Posts: 12121
    • View Profile
    • NeoLemmix Website
[BUG] Rope-sliding lemming displayed too low.
« 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.
My Lemmings 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)

Offline namida

  • Administrator
  • Posts: 12121
    • View Profile
    • NeoLemmix Website
Re: [BUG] Rope-sliding lemming displayed too low.
« Reply #1 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.
My Lemmings 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)

Offline namida

  • Administrator
  • Posts: 12121
    • View Profile
    • NeoLemmix Website
Re: [BUG] Rope-sliding lemming displayed too low.
« Reply #2 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).
My Lemmings 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)

Offline namida

  • Administrator
  • Posts: 12121
    • View Profile
    • NeoLemmix Website
Re: [BUG] Rope-sliding lemming displayed too low.
« Reply #3 on: July 16, 2022, 11:56:11 PM »
Fixed in commit 9635295.
My Lemmings 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)