Fog of War
#7
Near completion, I instituted an array that lets you define events upon the map that indeed uncover the fog.  

And with that, I also set individual ranges available for each.  BUT if you left out the range when defining an event to reveal the map... it uses the default scale.  Not the map scale, but the default.

I set up the events to 'reveal' the map when they begin taking a step forward.  I say this because the 'moving?' test within Game_Character is not sufficient enough a test.  It would flag 'true' from the character's very first pixel shift from one tile to the very last pixel...  So, I set up a new version of 'moving?'.  Not a replacement, but a new method just to test if any character just begins to move.  THIS should cut down on possible lag from multiple fog-removing events moving at the same time.

Oh, and a new 'script call' is in play...  "fog_events".  It allows you to set an event to BECOME a fog-revealing event, or to stop the event from revealing any more... range optional.

If you want to see it in action, move down and click the BLUE dude below the player. :D 


.zip   Fog of War Demo.zip (Size: 950.75 KB / Downloads: 1)

It needs some cleanup by my standing, and I want an optional means to flag events besides within the config page. So not done yet.  BUT it is performing the options you've requested... and more.

I removed the demo from the PREV post.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }


Messages In This Thread
Fog of War - by Tepe - 11-05-2024, 12:42 AM
RE: Fog of War - by DerVVulfman - 11-05-2024, 05:06 PM
RE: Fog of War - by DerVVulfman - 11-05-2024, 06:15 PM
RE: Fog of War - by Tepe - 11-06-2024, 04:11 AM
RE: Fog of War - by Tepe - 11-06-2024, 02:49 PM
RE: Fog of War - by DerVVulfman - 11-09-2024, 08:21 PM
RE: Fog of War - by DerVVulfman - 11-12-2024, 01:13 AM
RE: Fog of War - by Tepe - 11-12-2024, 04:54 PM
RE: Fog of War - by DerVVulfman - 11-12-2024, 05:10 PM
RE: Fog of War - by Tepe - 11-12-2024, 05:58 PM
RE: Fog of War - by DerVVulfman - 11-12-2024, 08:58 PM
RE: Fog of War - by Tepe - 11-12-2024, 09:53 PM
RE: Fog of War - by DerVVulfman - 11-13-2024, 04:02 AM
RE: Fog of War - by Tepe - 11-14-2024, 01:27 AM
RE: Fog of War - by DerVVulfman - 11-14-2024, 02:19 AM
RE: Fog of War - by Tepe - 11-14-2024, 02:29 AM
RE: Fog of War - by DerVVulfman - Today, 01:57 AM
RE: Fog of War - by Tepe - 6 hours ago
RE: Fog of War - by DerVVulfman - 3 hours ago
RE: Fog of War - by Tepe - 23 minutes ago



Users browsing this thread: 2 Guest(s)