Save-Point
IMPROVED Fog of War System - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Archives (https://www.save-point.org/forum-105.html)
+--- Forum: Creation Asylum Archives (https://www.save-point.org/forum-90.html)
+---- Forum: Scripts & Code Snippets (https://www.save-point.org/forum-92.html)
+----- Forum: RPG Maker XP Code (https://www.save-point.org/forum-93.html)
+------ Forum: New Functionality/Features Scripts (https://www.save-point.org/forum-99.html)
+------ Thread: IMPROVED Fog of War System (/thread-6693.html)



IMPROVED Fog of War System - Samo the thief - 05-06-2007

IMPROVED Fog of War System(FOW) V1.0
by Samo, the Thief
May 6 2007

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


I'm Sure that many people have ever wanted a Fog of War like Strategy Games.
Here you have it! But this isn't the only thing, you can do tiles that you can't
see through. Just play the Demo nd you will see my words.



CODE:
-----
here it is:

CODE

INSTRUCTIONS:
-------------
1-Put this Script Above Main

2- Add in Scene_Title the lines Between ADDED:

$game_map.update
#-----------ADDED------------------------
$game_fog_of_war = Game_Fog_Of_War.new
#-----------ADDED------------------------

3- The Same in Scene_Map the with this:

@message_window.update
#---------------------------------ADDED-------------
if wait(20)
$game_fog_of_war.update
@spriteset.update_tilemap
end
#---------------------------------ADDED-------------

4- Go to your tilesets and put with counter 1 the tiles you don't want
to be seen through, like walls or trees.

5- Enjoy!

Feautures:
----------
-YOu can't see thorugh some tiles depending on where you are
-The tiles you revealed and you are not seeing are semi-revealed
-It is cool!



Enjoy the script and give me the credit.

Samo, the thief.