Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

Hi scitydreamer,

That sounds like a nice suggestion! I initially designed the fog of war to automatically reveal what the player sees based on the default top view. I can add a Plugin Parameter to let the dev decide whether to reveal based on top view or fixed number of tiles.

In the meantime, you can create a new plugin, give it any name, put it below Minimap, and write:

var MK = MK || { }; 
// Override
MK.Minimap.fogOfWar.isSeen = function(x, y) {
  return MK.Minimap.fogOfWar.distance($gamePlayer.x, $gamePlayer.y, x, y) <= 3;
}

Replace the number 3 with your desired range. Euclidian distance is used, so 3 may not be exactly "3 tiles", so you want to play around a bit.

I gave it a try and it says "illegal return statement." There's probably an easy fix for it, but unfortunately I'm an idiot about coding

(+1)

Oh, don't worry, it's not your fault, mate! Itch.io destroyed the formatting a little bit.

I quickly made a ready-to-use plugin for you: downloads.aerosys.blog/plugins/MK_Minimap_fixedViewRange.js

You can quickly set the view distance in the Plugin Manager.

(+1)

Thank you, it works perfectly!!