HELP! Can I get the location (X,Y) of the a moving filter? (Explained on thread)

Hi all!!

Basically, Im using the filter controller plug in.

There is plugin command to move a filter it is once set.
So I set my godray filter:
Code:
setFilter sun 0 -130 0.5 2.5 .4
and then i tell it to move with:
Code:
moveFilter sun 1200 -130 0.5 2.5 .4 1000
Thats my target movent. It means that the filter sun will go from X= 0 to X=1200 and Y=-130 to Y=-130.
My question is, Is there a way I can check for the filter Xposition?
I want to do some stuff when it is on the middle (X=600)
Im not super code svy so I´m not able to locate that on the plug in.
Im working on a workaround by getting the timeframes and seconds and converting and etc etc.

but it is getting too complciated.

Thank you!!
This might be something where you can contact the plugin developer and find out how the plugin is referencing the filter and its ID. Or see if someone who knows code better than I do read it and find out how it references it for you.

Once you figure out that, I'd try something along the lines of filter.ID.screenX() == 600 in the script portion of a conditional branch. I don't know if that would actually work as I haven't tested anything like this obviously. It just seems like the right direction.

Although, if you're just using this plugin for a godray sort of effect, is it possible that using a picture with transparency might be easier? Then you could just call up and move the picture with events. Then, to check when the picture is at your intended screen position, you could put something along the lines of:

$gameScreen.picture(#).screenX() == 600 (where # = your picture id),

in the script portion of a conditional branch.

Does that help at all? I'd also check out the script call list here. It'll help give you a good idea of how to call up odd things that you can't normally do with events, or would be easier in a simple script call. It also gives you a good idea of how things are named and referenced once you get familiar with it. I'm also not a coder, I'm more of an art/music guy, so this has been a huge help to me.

Original thread: https://forums.rpgmakerweb.com/threads/help-can-i-get-the-location-x-y-of-the-a-moving-filter-explained-on-thread.164096/