Making a 3D maze crawler in Rpgmaker 2003

What I want to do is i want to check if theres a object that cant be walked through infront of you, and if so display a picture. Basicly like Yume 2kki's Mini maze but simpler. Thanks!
It's quite simple. Have a parallel process event that saves player's and events' x and y positions into variables and then compares them to see if the difference is 1 (or -1) in x axis and 0 in y axis and vice versa.
If you use terrain ID, you can create multiple conditions with images on the screen for each corridor variation, which could make for a very large event. Some people made first-person mazes in Rm2k(3) years ago in different games, including me, but I used the first method.

Another way would be to read the tiles in front of the player and place images over them, which would be very efficient.

Spoiler: READ THIS (CLICK ME)
Initially the idea is to create separate conditions to stay organized, reading several tiles in sequence is something that may seem complex at first glance, but it can be of great benefit in a system that will depend entirely on this, as it will save a lot in creating events.

Setting up the tileset:
1750202170521.png

Creating a maze:
1750202382919.png


Common System Event:
Code:
@> Control Variables: [0011:Player-X] = Player's X Coordinate
@> Control Variables: [0012:Player-Y] = Player's Y Coordinate
@> Comment: -----------------------------------------------------------
 :               :                  Two tiles ahead
 :               : ----------------------------------------------------------------------
@> Conditional Branch: Variable [0014:Render] == 0
  @> Call Event: [Draw:2AheadxLeft]
  @>
 : Branch End
@> Conditional Branch: Variable [0014:Render] == 1
  @> Call Event: [Draw:2AheadxCenter]
  @>
 : Branch End
@> Conditional Branch: Variable [0014:Render] == 2
  @> Call Event: [Draw:2AheadxRight]
  @>
 : Branch End
@> Comment: -----------------------------------------------------------
 :               :                  One tile ahead
 :               : ----------------------------------------------------------------------
@> Conditional Branch: Variable [0014:Render] == 3
  @> Call Event: [Draw:1AheadxLeft]
  @>
 : Branch End
@> Conditional Branch: Variable [0014:Render] == 4
  @> Call Event: [Draw:1AheadxCenter]
  @>
 : Branch End
@> Conditional Branch: Variable [0014:Render] == 5
  @> Call Event: [Draw:1AheadxRight]
  @>
 : Branch End
@> Comment: -----------------------------------------------------------
 :               :                  Clear to reset
 :               : ----------------------------------------------------------------------
@> Control Variables: [0014:Render] += 1
@> Conditional Branch: Variable [0014:Render] > 9
  @> Control Variables: [0014:Render] = 0 
  @>
 : Branch End
@> Comment: Anti-Lag
@> Wait: 0.0 seconds
@> Wait: 0.0 seconds

The event I named "Draw:2AheadxLeft" will serve to render a wall column two tiles ahead and one tile to the left of the player's view, regardless of the direction he is looking:
Code:
@> Conditional Branch: Player is facing Up
  @> Control Variables: [0011:Player-X] -= 1
  @> Control Variables: [0012:Player-Y] -= 2
  @>
 : Branch End
@> Conditional Branch: Player is facing Right
  @> Control Variables: [0011:Player-X] += 2
  @> Control Variables: [0012:Player-Y] -= 1
  @>
 : Branch End
@> Conditional Branch: Player is facing Down
  @> Control Variables: [0011:Player-X] += 1
  @> Control Variables: [0012:Player-Y] += 2
  @>
 : Branch End
@> Conditional Branch: Player is facing Left
  @> Control Variables: [0011:Player-X] -= 2
  @> Control Variables: [0012:Player-Y] += 1
  @>
 : Branch End
@> Get Terrain ID: [0013:Terrain-ID], Variable [0011][0012]
@> Conditional Branch: Variable [0014:Render] == 1
  @> Show Picture: 1, 'Maze2Ahead-Left-Floor', (160,120), 100%, 0%, M6
  @>
 : Branch End
@> Conditional Branch: Variable [0014:Render] == 2
  @> Show Picture: 1, 'Maze2Ahead-Left-Wall', (160,120), 100%, 0%, M6
  @>
 : Branch End

The logic of the event view:
1750204457807.png

This is a simple idea, you can include a much more distant view and draw more distant objects and less when they are closer

Good lucky

Original thread: https://forums.rpgmakerweb.com/threads/making-a-3d-maze-crawler-in-rpgmaker-2003.178390/