Touch Event activation

Hi evryone,


I looking for a way that touch event can be limited by activation from a specified side.


By default it will turn to the playe, so make code inside the event for ignore bad direction is not perfect for me.


I looking id in description of event I can give a parameter for tell witch side was activate or blocked.


I think that require a pluggin. Any idea? 


Thanks for your help and your precious time.
If you want the touch to only activate from a certain direction, then yes you need a plugin for that.


Are you really sure it's touch activated and not action activated? Last time I tried touch events, they dont face the player when they "touch"
I don't own VX (only VX Ace), but I would assume it let's you choose "Player" in the "Character ... is facing ..." part of the conditional branch. So you can wrap a conditional branch around your event commands to check if the player is coming from the correct direction - he has to be facing up when coming from below, facing left when coming from the right side etc. Does that solve your problem?
@XGuarden please confirm that you're using VX (where you posted this) or report this topic to be moved to MV (as your profile says).


That said, the solution is usually much simpler and needs neither script nor plugin:


Use the conditional branches for player facing instead of checking event direction. since the player can only activate an even when he is facing it, the side from which the event was activated is always the opposite of the facing of the player - if the player is facing north while activating it, he has triggered the event from south.
I make mistake, you ar right, it's MV not VX. 


But conditional brench was not ok for me. 


It's for a real big big projet and code will get messie if we start to put brench etc for thing that was so common. It's why I need another way.
In that case, you probably need a plugin - which means this doesn't go to MV support but


I've moved this thread to Plugin Request. Please be sure to post your threads in the correct forum next time. Thank you.



However, there is another plugin that might be helpfull while having nothing to do with directions. I haven't tested it myself yet and it might still be in beta, but check it out:


http://mvplugins.com/plugin/EvilCat/ReferByTitle
Thanks for your suggestion of pluggin. It's not what I looking for, but it will be so usefull in my projet for many thing that I have no world to know how t osay you thanks you.


For my current problem, you are right, it's a plugging request.


Ideally, I want to be able to put un comment(right of the event name) a parameter that tell valid or invalid direction.


Exemple of utility: 


Block the possibility to look inside the box from the side without having to put code.


Thanks a lot and i hope that first demo will be avalable this year. I started the projet on VX, then migrate it to ACE and now in MV lol.


But the mv stuff broke so much thing lol
If you want the touch to only activate from a certain direction, then yes you need a plugin for that.


Are you really sure it's touch activated and not action activated? Last time I tried touch events, they dont face the player when they "touch"

It's valid for all kind of activation.


For touch, trying to activate vent will do nothing of not from the right side.


For autostart event that will not trigger the event if I didt walk on it from a specified side.
For touch, trying to activate vent will do nothing of not from the right side.


For autostart event that will not trigger the event if I didt walk on it from a specified side.



Touch activated activates when you touch (walk "into") the event or when it touches you (depends if both or not depending if it's Player Touch or Event Touch), Autostart (autorun) means it automatically starts once the map begins, you don't even need to walk to it. Maybe you're using the wrong terms?
Yes i make a mistake on this one because I replyed so late at night lol.


The main idea was to be able to add tag to tll from witch direction event can be activated.


It's can be done without pluggin really easyly but I want to keep code clean.


For exemple, You have a book inside something, you can read it from one side but the other side will do nothing.

Original thread: https://forums.rpgmakerweb.com/threads/touch-event-activation.73513/