Greetings! So, i want to create an interesting effect that makes event darker when it is off screen, to create some kind of pop-up book effect. To do that i use this script.
It does it's job pretty well....
...until you go somewhere that is not the same as X or Y event coordinate.
From what i noticed it works like Visustella's activation circle, but i need it to work like activation square. Just to be clear i know almost NOTHING about javascript unfortunetly, which is why I am posting this.
Code:
$gameMap.distance($gamePlayer.x,$gamePlayer.y,$gameMap.event(this._eventId).x,$gameMap.event(this._eventId).y) > *distance*