Lantern Effect but on an Approaching NPC event instead


This was my last topic on lanterns. Today I would l would like to try out the same thing but with with an event that has a npc with the lantern effect surrounding the npc. I have changed the variables to the location of the NPC I want but it does not work. Also the NPC has approach player movement route on.

Thanks for reading.
  • Make the image bigger than your in-game resolution. If you have 640x480 use something like 1280x960 (basically double size). Just use a circular gradient on the middle of the screen.
  • Common Event, Parallel, use a switch called Lantern or something.
  • Make Two Variables. Player Screen X, Player Screen Y. Then set its values to Game Data: Player Screen X and Screen Y.
  • Use Show Picture, Center Origin, Use Player Screen X and Player Screen Y Variable for its coordinates. By default I use sub method and 160 opacity.
  • Add wait frames, like 3 or something.
  • Turn on the Lantern Switch in game and see it work.
This was write by
Archeia

If this worked for you.
You need to use this event X and this event Y or if you use as common event (GLOBAL) use the event X event Y for that.

Should work
I was using a parallel event on the map. I replaced the variables from player with the NPC. It's not working and I am not sure why. I think I am overlooking something.

Edit: I even copied the event I made that work and pasted it. Not sure why it isn't working.
Please show us a screenshot of your event (the one that's trying to attach the effect to the NPC).

What IS happening? Are you seeing the image but it's in the wrong place? Are you not seeing the image at all? Are you seeing the image, over the NPC, but it doesn't move when the NPC moves? Need more info.

Make Two Variables. Player Screen X, Player Screen Y. Then set its values to Game Data: Player Screen X and Screen Y.

You'd want to set your variables to Event Screen X and Event Screen Y, not Player.
Yes, I am seeing the image in the wrong place. No, the image is not over the NPC and no the image does not move with the NPC.
It isn´t suppost to be screen location and not the map location?
Yes! You are right. One last question...I thought to make the picture file you had to multiple by 45 with how big your map is. (My picture is not covering entire screen)

Edit: I'd like the player to be barely visible (Or completely dark except around NPC, would like to see both ways if possible) and the most light on the NPC. But so far it is not dark enough. I have opacity set at 100%?

Really appreciate you guys help!!

Edit: NVM figured it out. I have to increase opacity

Original thread: https://forums.rpgmakerweb.com/threads/lantern-effect-but-on-an-approaching-npc-event-instead.123052/