Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Maybe like a railing?  (Read 881 times)

Dunamisdeos

  • Bay Watcher
  • Duggin was the hero we needed.
    • View Profile
Maybe like a railing?
« on: May 04, 2016, 06:06:49 pm »

So, I think it would be nice to have a block that works like a floor but prevents movement in ONE direction, such as south or east. This could function as a "railing" without occupying the entire tile.

Could make it much easier to build things like multi-z ramps or pathways. It might even help with building places for say, an archer to stand and walk.

Wat do you guys think?
Logged
FACT I: Post note art is best art.
FACT II: Dunamisdeos is a forum-certified wordsmith.
FACT III: "All life begins with Post-it notes and ends with Post-it notes. This is the truth! This is my belief!...At least for now."
FACT IV: SPEECHO THE TRUSTWORM IS YOUR FRIEND or BEHOLD: THE FRUIT ENGINE 3.0

Dozebôm Lolumzalìs

  • Bay Watcher
  • what even is truth
    • View Profile
    • test
Re: Maybe like a railing?
« Reply #1 on: May 04, 2016, 08:57:22 pm »

...use fortifications?
Logged
Quote from: King James Programming
...Simplification leaves us with the black extra-cosmic gulfs it throws open before our frenzied eyes...
Quote from: Salvané Descocrates
The only difference between me and a fool is that I know that I know only that I think, therefore I am.
Sigtext!

Dunamisdeos

  • Bay Watcher
  • Duggin was the hero we needed.
    • View Profile
Re: Maybe like a railing?
« Reply #2 on: May 04, 2016, 09:04:11 pm »

Those take up an extra tile. This would function as a floor. The benefit would be a one-tile wide walkway rather than two or three.
Logged
FACT I: Post note art is best art.
FACT II: Dunamisdeos is a forum-certified wordsmith.
FACT III: "All life begins with Post-it notes and ends with Post-it notes. This is the truth! This is my belief!...At least for now."
FACT IV: SPEECHO THE TRUSTWORM IS YOUR FRIEND or BEHOLD: THE FRUIT ENGINE 3.0

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Maybe like a railing?
« Reply #3 on: May 05, 2016, 01:03:04 am »

Toady's described non-all-way tiles as something akin to hellish for pathfinding before.

Splint

  • Bay Watcher
  • War is a valid form of diplomacy.
    • View Profile
Re: Maybe like a railing?
« Reply #4 on: May 05, 2016, 01:07:28 am »

Wouldn't vertical bars also be able to more or less fill the role? Hell, you can even lower them if you need to improve traffic flow some. Not perfect of course, but that's what I sometimes use them for.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Maybe like a railing?
« Reply #5 on: May 05, 2016, 01:18:11 am »

i think what's meant is "like a floor tile, but blocks pathing in a certain direction".

Orange Wizard

  • Bay Watcher
  • mou ii yo
    • View Profile
    • S M U G
Re: Maybe like a railing?
« Reply #6 on: May 05, 2016, 01:39:03 am »

Vertical bars are fine in terms of flavour, I think. If the pathing is particularly awkward then there's not really any point.
Logged
Please don't shitpost, it lowers the quality of discourse
Hard science is like a sword, and soft science is like fear. You can use both to equally powerful results, but even if your opponent disbelieve your stabs, they will still die.

Reelya

  • Bay Watcher
    • View Profile
Re: Maybe like a railing?
« Reply #7 on: May 06, 2016, 05:55:45 pm »

Toady's described non-all-way tiles as something akin to hellish for pathfinding before.

Yeah, it would be absolute hell on FPS. Because pathfinding works by adding up costs through a sequence of tiles. If there were some tiles where you could only move in certain directions, then the pathfinding would need to check each tile to see if it's one of those "railing" tiles, the exclude certain directions from consideration. That means an extra level of checking on every tile of the map: even if the player never uses any railings, there would be an additional "is this a railing?" check on every tile of every path-finding process.

Walls and empty air currently serve as barriers. These use the same system: they are "non-walkable" spaces, so the path-finder rejects them as possible locations, and it can do so blind: it doesn't care why they are unwalkable, they're all excluded from the search path.

Railings also serve no gameplay purpose. On the other side of the railing is empty space. You can't path into empty space, so it serves as the same type of barrier to pathing as a wall would. And it's not like we need to "save space", because it's a tile-based game. Just build bigger things if the walls are too thick for you.
« Last Edit: May 06, 2016, 06:01:54 pm by Reelya »
Logged