Fog of War on Minimap not working correctly

0 favourites
  • 2 posts
From the Asset Store
MiniMap
$18 USD
10% off
MiniMap plugin, that allows for quick and easy implementation of an in-game map.
  • Hey all,

    I have a minimap that you can bring up in the game if you press "M". It isn't an interactive map (i.e. it just displays the layout of the current level you're in and that is that, no unit movement or that sort). However, when you are fresh into the level the minimap has fog of war (i.e. completely dark and you can't see the level itself) and as you move around the dark areas get revealed.

    For the minimap I am using one of the methods I found searching these forums. This is my code:

    https://i.imgur.com/GxrQB4I.png

    Right now I have it where I manually place black sprites around the level with size and location I want them to appear on the minimap. Unfortunately no matter how big and "encompassing" I make the sprites there are still seams and areas that don't get covered fully on the minimap despite these areas are completely covered in the level with the black sprites.

    This is the result I get:

    https://i.imgur.com/MccLXMR.png

    As you can see in the minimap (the small picture in the middle of the screen that has lots of black on it) still has seams and some areas that are displayed (walls at the bottom for example) that aren't covered. Yet in the layout I have the black sprites (that spawn their counterpart on the minimap) covering that entire place.

    Any ideas what is wrong? Any ideas what can I do to cover the minimap completely with these black sprites to simulate fog of war? Or maybe anyone has a better idea how to implement this mechanic?

    Thanks

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Bump, still looking for a solution.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)