Jump to content
  • 0

How Does Overlay Work?


gaveitatry

Question

My config was set to:

    <MapWidth>12</MapWidth>
    <MapHeight>12</MapHeight>
    <TileWidth>48</TileWidth>
    <TileHeight>48</TileHeight>

That means each map that I have is exactly 576 x 576 px.  I created a 576 x 576 checkered grid that was partially transparent.  My intention was to use the Overlay in the Map Properties to display this checkered grid on top of my map so I could temporarily see the tiles while in the game. However, instead of being static, the Overlay image followed my character around.  I never used Overlay before, so I didn't know that it was supposed to behave this way.  Also, another thing that I noticed was that my Overlay was distorted.  Instead of being perfectly squared, the tiles were rectangle.

 

By default, Intersect has the config set to :

    <MapWidth>32</MapWidth>
    <MapHeight>26</MapHeight>
    <TileWidth>32</TileWidth>
    <TileHeight>32</TileHeight>

That means in the default settings, each map is exactly 1024 x 832 px.  I went ahead and created a new grid for testing purposes that is 1024 x 832.  I was in a hurry, but I think that I got all of the squares right.  I set it to 75% transparency.  You can test it out and see what I mean.  Hopefully you get the same results with your settings.

 

62e7b047fbbebf65e22643faec493a42.png

 

 

UPDATE: I can accomplish what I want by using Mask.  I just thought that Overlay would be easier since I just have to select my Grid View image from the drop down menu and click Save.  Using a Mask might interfere with existing Masks?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
44 minutes ago, jcsnider said:

You could throw that graphic over everything on the fringe 2 layer.

 

Overlay is supposed to follow the character. It is often used for sunbeam effects and the like. You can see something similar in the image below:

0c97f71064806b0789655366e63f48c3.png

To elaborate on his question - is it possible to render a pixel perfect overlay on the screen? No distortion or aliasing? I can see how this difference could make or break several concepts using the overlay system. Thank you for your thorough answers! Love how those light beams look, definitely going to play with the overlays a bit now.

Edit: I understand that he wanted a grid so he could see how it lines up in game, however I feel this question ties into his original point quite well.

Link to comment
Share on other sites

×
×
  • Create New...