Plugin Request: Fog of War

Indrah

Megane Berserker
Veteran
Joined
Mar 5, 2012
Messages
2,078
Reaction score
2,063
First Language
Spanish
Primarily Uses
RMMV
Hello all. I'm trying to see if anyone can help me realize a small project, and one of the aspects I very much want to implement is gradual discovery of the map tile by tile with a fog of war style thing.  


(For quick reference, imagine Etrian Odyssey but playing directly on the minimap. Each step discovers your immediate surroundings).


I found the script that would have wonderfully...but for Ace. Here it is in all its glory by Theo Allen:


https://raw.githubusercontent.com/theoallen/RGSS3/master/Fog%20of%20War.rb


And a video showing it in action: 














Requirements:


+Must be able to set at least a visibility range of 1 tile in main four directions, but I'd also like to be able to control the visibility range via a simple variable. 


+Must be compatible with variable resolutions (Yanfly Core for resolution)


+Once uncovered it should stay that way (do not carry a circle of light with you, discovered cells stay discovered)


+(Optional) A way to "reset" the cover on a map so it returns to being dark. Not too crazy about this one so if it's fiddly forget it.


In effect each "map" will be a small and snug (think causal mobile games like Dungelot or similar click to discover tile games) where not being able to see whats ahead is exactly the point, or visibility being very limited. 


In theory, each map starts completely dark and you slowly discover it one or two tiles at a time, finding enemies and treasure and so on. A very, VERY loose idea of the kind of stuff I mean when I say small and "minimap" like below. 


Thanks for your time, hope someone can help me with this. I'm willing to trade mapping if you'd like. (And this definitely doesn't have to be custom for me, open use is perfectly fine).

Screenshot 2016-05-15 13.39.47.png
 

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
826
First Language
English
Primarily Uses
This is something I'm interested in doing since I'm working on a dungeon generator anyway. I can get started next week.
 

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
826
First Language
English
Primarily Uses
So I'm pretty close to being done. Configuring visibility is the only thing left.


I've been testing with a visibility range of just 1 in front of the player. Works perfectly.


Now obviously I want visibility to be customizable, so I would like your input on how that should be. In the video you linked, the visibility in front of the player is more of a cone than a rectangle, so that example involves more than just having the width and height of the visibility.
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,583
Latest member
write2dgray
Top