Face an Event (Character)

blackwire

Warper
Member
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!
 

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,038
Members
137,568
Latest member
invidious
Top