- Joined
- Sep 9, 2018
- Messages
- 1
- Reaction score
- 0
- First Language
- English
- Primarily Uses
- RMMV
I was having trouble finding anything like this and I'm new to RPG Maker MV so I didn't understand some of the base components. I was trying to figure out how to face an event when the event touched me. Seems simple enough, but it wasn't something that I could do by default. I did find an Ace example on how one might go about it so I went looking through the code for something like it in MV and found that you could simply do the same with a slightly different command.
I created an "Enemy/Character Touch Switch" and set that on the character that is approaching the main actor. When it touches the main actor it sets this switch and then the event controlling the main actor will do something based on this switch.
What it does is set a movement route for the main actor (player) and uses the script:
this.turnTowardCharacter($dataMap.events[3])
3 here being the event id I wanted to turn to face.
I hope this helps someone else!
I created an "Enemy/Character Touch Switch" and set that on the character that is approaching the main actor. When it touches the main actor it sets this switch and then the event controlling the main actor will do something based on this switch.
What it does is set a movement route for the main actor (player) and uses the script:
this.turnTowardCharacter($dataMap.events[3])
3 here being the event id I wanted to turn to face.
I hope this helps someone else!
