I'm trying to make hidden areas on the map with this. Works fine for the most part (I can't seem to get the range to work but that part is not important anyway)
So when the player steps into the covered region, it's revealing just fine, however, I'm trying to reveal the area via script call. (I have them behind a destructible wall and they are supposed to reveal with the the explosion rather than when stepping into them). I don't know why it's not working.
View attachment 212594
Hi!
As I can see, you are using the MV version.
The script call you are using will only cover/reveal the tiles that are on the specified region, in your case, region 2.
The thing is, you need to replace "
reveal", with either true or false.
Cover a tile:
$fogSystem.coverRegion(2, true)
Revealing a tile:
$fogSystem.coverRegion(2, false)
[[[ EDIT ]]]
Also, about this:
I'm trying to make hidden areas on the map with this. Works fine for the most part (I can't seem to get the range to work but that part is not important anyway)
The range must be a number. It is the number of tiles that will be revealed on all sides:
Example:
Reveal 3 tiles Left, Right, Up, and Down from the coordinate 5, 5
$fogSystem.coverLinear(5, 5, 3, true)
Reveal 2 tiles Left, Right, Up, and Down from the player coordinate:
$fogSystem.coverLinear($gamePlayer.x, $gamePlayer.y, 2, true)
Also, it's been a while that I mess with this plugin, I just don't remember if
true is for
Reveal or
Cover xD
Maybe the logic is inverted, so if it does not reveal using
false as an argument, try using
true.