Touch Event activation

XGuarden

Veteran
Veteran
Joined
May 10, 2016
Messages
446
Reaction score
17
First Language
French
Primarily Uses
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.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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"
 

LadyBaskerville

Hell-poodle
Veteran
Joined
Sep 12, 2016
Messages
645
Reaction score
524
First Language
German
Primarily Uses
RMMV
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?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
@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.
 

XGuarden

Veteran
Veteran
Joined
May 10, 2016
Messages
446
Reaction score
17
First Language
French
Primarily Uses
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.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
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
 

XGuarden

Veteran
Veteran
Joined
May 10, 2016
Messages
446
Reaction score
17
First Language
French
Primarily Uses
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
 

XGuarden

Veteran
Veteran
Joined
May 10, 2016
Messages
446
Reaction score
17
First Language
French
Primarily Uses
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.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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?
 
Last edited by a moderator:

XGuarden

Veteran
Veteran
Joined
May 10, 2016
Messages
446
Reaction score
17
First Language
French
Primarily Uses
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,040
Members
137,569
Latest member
Shtelsky
Top