Hi, I want to make a feature where the player can instantly kill the enemy from behind. In this feature it would be a button press event, I know how to do the button press for the event. But I don't know how to check if the player is behind the enemy.
Condition Check
RPG Maker VXAce SupportRead this tutorial on making evented Lines of Sight, and make a common event checking if the player is next to the event and if that event is facing away from you. You can play the common event using Yanfly Button Common Event script.
Maybe you can have the event run parallel checks if they're not facing the player using that tutorial, turning on a switch allowing you to use the common event.
http://forums.rpgmakerweb.com/index.php?/topic/3452-direction-based-line-of-sight-events/
http://yanflychannel.wordpress.com/rmvxa/field-scripts/button-common-events/
Maybe you can have the event run parallel checks if they're not facing the player using that tutorial, turning on a switch allowing you to use the common event.
http://forums.rpgmakerweb.com/index.php?/topic/3452-direction-based-line-of-sight-events/
http://yanflychannel.wordpress.com/rmvxa/field-scripts/button-common-events/
Thanks, I have an animated power bar and button masher so I wanted the player to be able to press enter, and press left and right to snap the neck of the enemy.
Using that button common events script, I wont be able to do the animated button masher, I will see what I can do. Thanks for the help.
Using that button common events script, I wont be able to do the animated button masher, I will see what I can do. Thanks for the help.
Original thread: https://forums.rpgmakerweb.com/threads/condition-check.17358/