Why because of this forum?
Okay so the reason why i’m making this topic, is because people think pseudo 3-D in flowlab is hard, (and even feature request 3-D becoming in flowlab), but its actually pretty simple. (Unless your using triangular displays, or no ray-casting). (Feel free to ask questions)!
Wall Ray-casting
Using the object behavior block called “Raycast”, which calculates the distance
between the starting point to whatever closest object it hits, we could make something called “Pseudo-3D”, but how are we gonna make “Pseudo-3D” using ray-casts? Well if we make a top-down player, top-down walls, and rays connected to the player, we can actual make a “Pseudo-3D” ray-caster.
If you connect (F.O.V number) to the player, make the distance opposite, (the lower the distance is, the higher the number is, and the higher the distance is, the lower the number is), make each ray rotated + Resolution, (Make it that if the number is higher than 360, it will now plus by Resolution), insert it into size, you have a 3-D ray-caster, and also to fix fisheye, make it the higher the size, the more it will subtract the size, (i IMPORTANT ! Make it a only once activation when the size changes).
To fix bugs
If your walls look weird when you look at a side view of a wall Make the hit-boxes of the walls bigger. (This only happens if your F.O.V is higher than 60).
If your walls look way to pixelated, put a rotation in the walls.
Mistakes
(Also I can’t make an example right now it is 11-12PM,
might be spelling mistakes, and some missing info, I can’t check right now its too late an night).
Might add how to make floor ray-casting!