- Joined
- Oct 21, 2018
- Messages
- 121
- Reaction score
- 46
- First Language
- English
- Primarily Uses
- RMMV
Hello,
I'd like to use Yanfly's Event Proximity Activate plugin, but have it so that it will only run if I'm in front of the event. So, for example, if the event is facing down, and my y position is greater than the event's y position, then activation occures, otherwise nothing happens.
I tried using my own conditions to check for if the player is in front of event, like (for example):
Control Variables : event direction
Control Variables : event x position
Control Variables : event y position
Control Variables : player x position
Control Variables : player y position
if event direction = 2
if player y postion > event y postion
<Comment : Activation Radius: 9>
end
end
The problem is that just having the <Comment : Activation Radius: 9> anywhere on the page activates the plugin. Putting it inside a condition is no different from having it anywhere else. So if you had something like:
if 2 = 3
<Comment : Activation Radius: 9>
end
it would still activate whatever else you have on the event page. My reasons for wanting this are kind of complicated, but it would also be useful for anyone who wanted to allow the player to approach an event from behind without activating it, which is generally more realistic.
Thanks for reading!
I'd like to use Yanfly's Event Proximity Activate plugin, but have it so that it will only run if I'm in front of the event. So, for example, if the event is facing down, and my y position is greater than the event's y position, then activation occures, otherwise nothing happens.
I tried using my own conditions to check for if the player is in front of event, like (for example):
Control Variables : event direction
Control Variables : event x position
Control Variables : event y position
Control Variables : player x position
Control Variables : player y position
if event direction = 2
if player y postion > event y postion
<Comment : Activation Radius: 9>
end
end
The problem is that just having the <Comment : Activation Radius: 9> anywhere on the page activates the plugin. Putting it inside a condition is no different from having it anywhere else. So if you had something like:
if 2 = 3
<Comment : Activation Radius: 9>
end
it would still activate whatever else you have on the event page. My reasons for wanting this are kind of complicated, but it would also be useful for anyone who wanted to allow the player to approach an event from behind without activating it, which is generally more realistic.
Thanks for reading!


