Author Topic: Climber vs. overhang: turns at 7 pixels, but climbs 8  (Read 2809 times)

0 Members and 1 Guest are viewing this topic.

Offline Nepster

  • Posts: 1829
    • View Profile
Climber vs. overhang: turns at 7 pixels, but climbs 8
« on: October 14, 2015, 06:40:19 PM »
Recently we had a discussion on the climber mechanics for V2.00 with respect to low terrain. Regardless what the rule is, it should be applied consistently. However in NeoLemmix V1.35C this is not the case!
If the wall is at least 8 pixels high, a lemming might climb it, even when there is terrain among the lowest 6 pixels. But if the wall is precisely 7 pixels high, he turns around :lem-mindblown:! The reason seems to be some too rigid terrain checks for hoisters.
Example level attached.

Offline namida

  • Administrator
  • Posts: 12399
    • View Profile
    • NeoLemmix Website
Re: Climber vs. overhang: turns at 7 pixels, but climbs 8
« Reply #1 on: October 14, 2015, 07:04:56 PM »
While I'm struggling to remember why this is the rule, or how I could've justified it at the time; there is at least a consistent logic here. The consistent rule is - the lemming cannot climb it if there is an overhang on either of the last two pixels that he climbs.
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 Nepster

  • Posts: 1829
    • View Profile
Re: Climber vs. overhang: turns at 7 pixels, but climbs 8
« Reply #2 on: October 15, 2015, 09:14:25 PM »
Well, I wouldn't call it consistent logic to have a rule that only applies in one very specific situation (wall = 7 pixels high, overhang = 6 pixels high), even if one can state it in a much more general fashion.
It is perhaps noteworthy that precisely this situation actually appears naturally: Assume you have a pillar style level with a brown stair and want to modify it such that climbers may pass, but usual walkers cannot. The most natural way to do this is to take a triangle piece (object number 8 or 9) and use it to erase three pixels from the top of the second step of the stair. The result is precisely a terrain setup as described above. Of course one can slightly modify the setup to take this into account, but this needs at least one more terrain piece and therefore feels less natural.

Offline namida

  • Administrator
  • Posts: 12399
    • View Profile
    • NeoLemmix Website
Re: Climber vs. overhang: turns at 7 pixels, but climbs 8
« Reply #3 on: October 16, 2015, 06:14:53 AM »
It probably is something that should be changed for the big update. I'm probably not going to change it for the small one.
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)