Tiles that are impassable, but only from certain other tiles.

Hello,

Referring to the image below, here's what I'm trying to do:
  • If you're standing on a grass tile, then you can move to a snow tile or a sand tile.
  • If you are standing on a snow tile, then you can move to a grass tile, but not a sand tile.
  • If you are standing on a sand tile, then you can move to a grass tile, but not a snow tile.
index.php


I've already come up with a solution using eventing, but it doesn't work when dashing because it doesn't trigger the event fast enough. I then came up with another solution using parallel processes, which works even while dashing, but there's going to be a bunch of these on my maps, and I don't want to have a bunch of parallel processes running.

Is there some kind of a more "built in" way of doing this?

Thanks!
for autotiles it would be hard, but in the tile settings if B-E you can make arrows (4 direction) and make it a dot
or arrow where the player can walk.

thisis not possible for A tiles, but you can event it, with regions, with for example 5 and 6, if on sand, 6 will be blocked to so, if in snow, the 5 is blocked to sand.

or make sand tiles in a square so its easier to block with it.
I dont see any other easier solutions at this time.
There isn't an easy way to automate this.

The crude-but-functional way is to make a set of tiles on layer D set up with the appropriate restrictions on a tile-by-tile basis. Use placeholder icons to show where the player can't move while testing, then you're done, delete the icons from the layer D file to make them transparent.
there are two ways the default RM has to create special passability:
1) directional passability settings
2) ceiling tiles to simulate a 2-level-dungeon

as mentioned above the use of directional passability requires a lot of care and very precise work with invisible tilesets.

you can instead try to use ciling tily for this, but again that is not exactly what you might want.

Have a look at the wall tiles from interior sets. you'll see that they consist of wall tiles and of top-wall or ceiling tiles.
The engine has an automated way to use that to simulate a two-level-dungeon: you can walk on the floor, and you can walk on the top of the walls as if they were a second level higher up. But you can't go from one to the other without an override like a ladder.

Unfortunately every passable upper tile is an override, and all ceiling tiles are on the same level and you can move between them without problems.
But it might be easier for you to get to what you want by combining those methods.

If that isn't enough you'll need a plugin to change passability for your maps.
OK, so I pretty much did what @Restart suggested, and that's working very well. Thank, y'all.
Edit: Made Text shorter. Wasnt sure how to explain.
You can use the Scriptline in Eventcommand Conditional Branch for this.
Just create a Parallel Event...

Here the Eventcode as Text with Region Ids:
Spoiler
Code:
◆If:Button [Down] is pressed down
  ◆If:Script:$gameMap.regionId($gamePlayer.x, ($gamePlayer.y)) === 1
    ◆If:Script:$gameMap.regionId($gamePlayer.x, ($gamePlayer.y + 1)) === 2
      ◆Set Movement Route:Player
      :                  :◇Turn Down
      :                  :◇Wait:4 frames
      ◆
    :End
    ◆
  :End
  ◆If:Script:$gameMap.regionId($gamePlayer.x, ($gamePlayer.y)) === 2
    ◆If:Script:$gameMap.regionId($gamePlayer.x, ($gamePlayer.y + 1)) === 1
      ◆Set Movement Route:Player
      :                  :◇Turn Down
      :                  :◇Wait:4 frames
      ◆
    :End
    ◆
  :End
  ◆
:End
◆If:Button [Left] is pressed down
  ◆If:Script:$gameMap.regionId($gamePlayer.x , $gamePlayer.y) === 1
    ◆If:Script:$gameMap.regionId($gamePlayer.x - 1, $gamePlayer.y) === 2
      ◆Set Movement Route:Player
      :                  :◇Turn Left
      :                  :◇Wait:4 frames
      ◆
    :End
    ◆
  :End
  ◆If:Script:$gameMap.regionId($gamePlayer.x , $gamePlayer.y) === 2
    ◆If:Script:$gameMap.regionId($gamePlayer.x - 1, $gamePlayer.y) === 1
      ◆Set Movement Route:Player
      :                  :◇Turn Left
      :                  :◇Wait:4 frames
      ◆
    :End
    ◆
  :End
  ◆
:End
◆If:Button [Right] is pressed down
  ◆If:Script:$gameMap.regionId($gamePlayer.x, $gamePlayer.y) === 1
    ◆If:Script:$gameMap.regionId($gamePlayer.x + 1, $gamePlayer.y) === 2
      ◆Set Movement Route:Player
      :                  :◇Turn Right
      :                  :◇Wait:4 frames
      ◆
    :End
    ◆
  :End
  ◆If:Script:$gameMap.regionId($gamePlayer.x, $gamePlayer.y) === 2
    ◆If:Script:$gameMap.regionId($gamePlayer.x + 1, $gamePlayer.y) === 1
      ◆Set Movement Route:Player
      :                  :◇Turn Right
      :                  :◇Wait:4 frames
      ◆
    :End
    ◆
  :End
  ◆
:End
◆If:Button [Up] is pressed down
  ◆If:Script:$gameMap.regionId($gamePlayer.x, ($gamePlayer.y)) === 1
    ◆If:Script:$gameMap.regionId($gamePlayer.x, ($gamePlayer.y - 1)) === 2
      ◆Set Movement Route:Player
      :                  :◇Turn Up
      :                  :◇Wait:4 frames
      ◆
    :End
    ◆
  :End
  ◆If:Script:$gameMap.regionId($gamePlayer.x, ($gamePlayer.y)) === 2
    ◆If:Script:$gameMap.regionId($gamePlayer.x, ($gamePlayer.y - 1)) === 1
      ◆Set Movement Route:Player
      :                  :◇Turn Up
      :                  :◇Wait:4 frames
      ◆
    :End
    ◆
  :End
  ◆
:End

Edit: Here the same code but with Terrain Tag, just give snow and sand in database terrain tags 1 and 2.
Spoiler
Code:
◆If:Button [Down] is pressed down
  ◆If:Script:$gameMap.terrainTag($gamePlayer.x, ($gamePlayer.y)) === 1
    ◆If:Script:$gameMap.terrainTag($gamePlayer.x, ($gamePlayer.y + 1)) === 2
      ◆Set Movement Route:Player
      :                  :◇Turn Down
      :                  :◇Wait:4 frames
      ◆
    :End
    ◆
  :End
  ◆If:Script:$gameMap.terrainTag($gamePlayer.x, ($gamePlayer.y)) === 2
    ◆If:Script:$gameMap.terrainTag($gamePlayer.x, ($gamePlayer.y + 1)) === 1
      ◆Set Movement Route:Player
      :                  :◇Turn Down
      :                  :◇Wait:4 frames
      ◆
    :End
    ◆
  :End
  ◆
:End
◆If:Button [Left] is pressed down
  ◆If:Script:$gameMap.terrainTag($gamePlayer.x , $gamePlayer.y) === 1
    ◆If:Script:$gameMap.terrainTag($gamePlayer.x - 1, $gamePlayer.y) === 2
      ◆Set Movement Route:Player
      :                  :◇Turn Left
      :                  :◇Wait:4 frames
      ◆
    :End
    ◆
  :End
  ◆If:Script:$gameMap.terrainTag($gamePlayer.x , $gamePlayer.y) === 2
    ◆If:Script:$gameMap.terrainTag($gamePlayer.x - 1, $gamePlayer.y) === 1
      ◆Set Movement Route:Player
      :                  :◇Turn Left
      :                  :◇Wait:4 frames
      ◆
    :End
    ◆
  :End
  ◆
:End
◆If:Button [Right] is pressed down
  ◆If:Script:$gameMap.terrainTag($gamePlayer.x, $gamePlayer.y) === 1
    ◆If:Script:$gameMap.terrainTag($gamePlayer.x + 1, $gamePlayer.y) === 2
      ◆Set Movement Route:Player
      :                  :◇Turn Right
      :                  :◇Wait:4 frames
      ◆
    :End
    ◆
  :End
  ◆If:Script:$gameMap.terrainTag($gamePlayer.x, $gamePlayer.y) === 2
    ◆If:Script:$gameMap.terrainTag($gamePlayer.x + 1, $gamePlayer.y) === 1
      ◆Set Movement Route:Player
      :                  :◇Turn Right
      :                  :◇Wait:4 frames
      ◆
    :End
    ◆
  :End
  ◆
:End
◆If:Button [Up] is pressed down
  ◆If:Script:$gameMap.terrainTag($gamePlayer.x, ($gamePlayer.y)) === 1
    ◆If:Script:$gameMap.terrainTag($gamePlayer.x, ($gamePlayer.y - 1)) === 2
      ◆Set Movement Route:Player
      :                  :◇Turn Up
      :                  :◇Wait:4 frames
      ◆
    :End
    ◆
  :End
  ◆If:Script:$gameMap.terrainTag($gamePlayer.x, ($gamePlayer.y)) === 2
    ◆If:Script:$gameMap.terrainTag($gamePlayer.x, ($gamePlayer.y - 1)) === 1
      ◆Set Movement Route:Player
      :                  :◇Turn Up
      :                  :◇Wait:4 frames
      ◆
    :End
    ◆
  :End
  ◆
:End

If Direction Button is pressed and if iam standing on region 1 and region 2 is where i put direction button to, dont walk just turn and stand. Or if iam standing on Region 2 and Region 1 is in that direction, also dont walk than. Else just do nothing.

Original thread: https://forums.rpgmakerweb.com/threads/tiles-that-are-impassable-but-only-from-certain-other-tiles.110758/