[RM2K3 DYNRPG] FOG OF WAR REQUEST

Posts

Pages: 1
I am looking for something like this:


I was thinking maybe if a wall or trees were near the hero that you could make the tiles behind the object to be black. If that's not possible maybe just use a 16x16 black image and make an algorithm that will display the black images behind objects to create fog.
Try this tutorial: http://rpgmaker.net/tutorials/479/

It was mentioned in a few topics below this one: a request for something to help with line of sight.

I don't understand it very well myself, but it seems to allow for the function of what you want.
Thanks, but that kind of math is to complicated and I don't see how it relates to what I am talking about.
I'd feel inclined to not call the mathematics in mind particular complicated (biased as it may be), though it might look that way, and it does relate in a sense that it could actually be used to prevent the player from being able to see through walls / forest and whatever...
but it's a rather bad solution, and wouldn't replicate the effects seen in the video.

Writing a Plugin for this should be possible, though I don't see exactly how it should be done for this particular case (not any immediate ones anyway).
Idea-in-a-minute:

Draw a pic the size of a tile, for every tile there is in the map. Have a function check hero's coordinates and start erasing pictures around him.

You don't even need to draw a pic for every single tile, but for what you see in the screen plus 2 or 3.
@Large
I have no idea how I would be able to do that. Could you please make a sample of what you mean or elaborate? That seems like the only way I can do what I want in rm2k3, but I just need to figure out an algorithm for it.
Pages: 1