Having trouble creating a working torch item - terrax lighting plugin

Hi All,

I'm using the terrax lighting plugin and used a few youtube tutorials as a guide/basis to create a torch inventory item. It's intended to be an expendable item that will create some extra light in dark areas.

I have a common event to flip a switch "torch active" from off to on, and the torch item triggers the event. (the switch is set to off on the transfer event to ENTER the map, as well as to EXIT the map)

I have a parallel event on the map that sets two variables to the players X and Y coords

I have a parallel event on the map, a light event (light event 1), which uses the plugin command "light on 1" to activate itself, and a set event location (itself) X and Y based off the variables set in the first parallel event.

It works. Kindof. When the player uses the torch item, it activates a light (larger radius than the default player one, obviously) that follows the player around.

However , the location of the light event only gets updated every 3 or 4 seconds. If the player moves, they leave the light behind until they stop for a moment and wait for it to 'refresh' at which point the light appears on them as it should.

I've tried everything I can think of to get the light event to follow the player in real time - what am I missing?
Is there a better way to do this?
It sounds like you have multiple parallel events running on your map at the same time. That's generally frowned upon because it can cause timing issues, and I'd guess that's causing the lag. Is it possible for you to combine the two events into one?
It probably is.
I wasn't sure if having a parallel event setting the X Y position vars, and then using those to move itself dynamically, would actually work correctly. I'll try combining them and post an update.
Tried setting it up as one event, that sets the X Y vars, and moves itself accordingly - same delay/lag problem. It follows the player, but only "refreshes" its location every 3 or 4 seconds.

(Reasonably confident its not hardware/performance lag, running on a freshly built I7-7700k/32gb ram system)

This seems like it would be a very common functionality/feature to add into a game - anyone have a better idea on how, mechanically, to do it? Is there a plugin better suited for this than terrax lighting?
Double-post notice: tjsnhgaming

If you want better help, we need to see full screenshots of the events and items you have - there are a lot of ways that could be caused, and we need to see what you did to help you find the problem.
The parallel event, the common event, and the torch item.
I found a partial solution.

I set the event's "movement" to "follow player" instead of fixed, and I located it's initial location way off on the edge corner of the map.
When the player uses the torch item, it still takes 3-4 seconds for the light to show up around them, but after its there it follows them much more better than before.
Queries about how to implement plugins, or queries relating to them are best posted in the thread where the plugin was originally posted. That way you can be sure that the writer of the plugin will see them. The alternative is to post your query in the general support forum for plugins.
Moved to: Javascript/Plugin Support
@tjsnhgaming the way you're using parallel process is also wrong, that will create a lot of lag. you need to switch off the parallel process after giving the plugin command.

additionally, I already asked you not to doublepost - if you want to add something and your own post is the last one, edit that post instead of adding another post.
@tjsnhgaming have you seen Driftwood Gaming's video on this very issue?

Original thread: https://forums.rpgmakerweb.com/threads/having-trouble-creating-a-working-torch-item-terrax-lighting-plugin.76578/