Change Script of Through ON

Hello Guys 🙂


I just want to know how to change this one. I have an Event which Option selected is Through and Direction Fix and the Priority is Same as Character.


The Problem is When i walk to that event by Moving Up and Down the Image of that event is Hanging In front of my character.


Here's the Screenshot:

Spoiler
HUONI4.jpg





Anyone know how to change that on Script? Thanks thanks thanks 🙂
then change priority to below
@mrcopra: But i want it to remain and trigger it by Same As Character priority 
Why do you have it set to through? That what allows your character to walk through it.
@Uzuki: Because I want to trigger it by the priority Same As Character that's why i set it to Through. 
Then you want to set the through to off. Because if the player can walk through it, the event won't activate because the engine is registering that the player isn't touching the event.
@Uzuki: Yeah that's the point i don't want to trigger it Below Characters. I can pass through to that event but i trigger it Same as character.


But the problem is if i walk through that event upward the Image of the event is hanging in front of my character 🙁
It won't trigger because the player can't interact with it with Through on. If you set it to Same As Characters it will be on the same level as the player and they can touch it without walking through it.
A few potential issues here ...


Let's first understand priorities and triggers.  Do you WANT to be able to walk onto the dog?  It seems unusual - not something you'd normally be able to do.  Checking the Through box, with any priority, or setting the priority to Below or Above Characters, means you have to be standing ON the event to interact with it.  Setting it to Same as Characters, and UNchecking the Through box, means you interact with the event from the next tile.  This is how you would normally interact with an event that has a moving sprite - like a person or an animal.


The other thing I notice is that when your PC and the dog are on the same tile, the dog is a few pixels below the PC.  This might indicate that your character sheet with the dog has a ! at the start of the name.  This is also a bit unusual - a ! is usually reserved for map-like character sheets - objects rather than living things.  Things like doors, chests, switches (this is so they line up with the grid - the bottom of a door will be in line with the bottom of the building, for example).  People and animals normally don't have that (so it looks more normal when they walk on things that ARE lined up with the grid - bridges, for instance), and in fact the default RTP doesn't have a ! at the start of the file name for the animals.  It seems like something you've done yourself that is the opposite of the way the default RTP handles it.  THIS is what's causing your dog to display in front when you are on the same tile - the y coordinate of its sprite is causing it to be sorted above (and thus displayed above) your PC.
@Uzuki: But it's working on my project? if i set the option to Through On and the priority to Same as Character. I can trigger it in a same level but not on the same tile and also i can walk on it because the option is Selected Through. Is there any issue Between Through On and Same as Character? For me there's no issue aside from Hanging the image in front of my character 🙁


@Shaz: the file name of the dog is no ! at the start of the File name. 
If you walk upward to the tile and move one more time you will notice that the image is displaying in front of the character but if you move left or Right the tile is not displaying infron of the character in short it's normal that you can pass through it. the problem is moving upward. Something wrong with my explanation? Sorry 🙂  I'm not good in English.
Can you show us the picture of the spritesheet you're using?
Can you double check that?  Do you have two files that are the same and one has a ! in front?  I made a copy of the Nature character sheet and put a ! in front and ended up with exactly what you have in your screenshot.  I made another event using the character sheet without the ! and it worked properly.


Do you have any plugins, and if you disable them all does the problem still happen?  I wonder, if you definitely don't have a ! in the file name (it could be the second character, not the first), if you've got a plugin that lets you disable the 'move up x pixels' for certain events, and if that's what's happening here.
Here's the screenshot: 


34U9ko.jpg
Ok you just need to turn the Through box to off.
Thank you  🙂  Here's the last question Sir @Uzuki is there anyway to change that (Hanging In front of the character when moving upward to it) when i Set the Through Box On?


If there's no way i will use the command (Facing: Left,Right,Up,Down) to trigger the event and set the priority to Below Character.
What exactly are you trying to accomplish? 
You want to know what direction he's facing when you interact with him?  Is that the only reason you're using Through?


See if this helps - it stops the event form turning towards the player when you interact with it.  However, if it's on a move route or moving randomly, it might still keep moving.


http://forums.rpgmakerweb.com/index.php?/topic/49304-keep-moving-event/
@Uzuki: If ever i get to fix that i can apply it to my farming system.


Here's what i want to accomplish: Flowing the soil by setting the priority in Same as Character so I can access it by the same level but not on the same tile right? If i didn't check the Through of the event i can't go through that tile. However it is a soil so i want to go through that tile, that's why i checked the through box. And my problem is 



If the character walk upward to the tile and move again one more time you will notice the image of that tile is displaying in front of the character in just a few moment.


@Shaz: Nope Mam Shaz.
Ok so if I understand you want to walk on top of the soil and still interact with it? Then you need to set it to Below Character and the event will be under the player rather then over them.

Original thread: https://forums.rpgmakerweb.com/threads/change-script-of-through-on.64933/