move player problem[Solved]

I want to make event touch player
then move player backward from where event(enemy move toward player) approach
like it kick player
any Idea or plugin that work out this way
thank you
any event can use set move route targeted on the player to make the player move in any way you want.

For more details you would have to give us a better description of what you want, because your description is a bit confusing.
thank you
sorry my english not good
I mean
npc--->touch player--->player move backward from face of npc
For full effect, you need to use positional mathematics. It is difficult to explain if you don't know those mathematics (especially through a language barrier), but easy if you know them.

basically you need for variables, playerX playerY eventX eventY. You need to use control variable to load the coordinates into them.
then compare them with a series of conditional branches and control variable commands to identify the relative position of both player and NPC on contact.
Depending on which directions they have relative to each other, you use set movement route targeted on the player with a move into that direction and a turn into the opposite direction.

If you don't understand that, then you need to tell us which part you didn't understand - how to handle the mathematics, or the specific event commands used.
I understand how that work in other program like stencyl(flash base engine with gui)
like move actor x+/-x2,y+/-y2 by x,y is position of npc by face direction
but in rpg maker mv
I don't know how to get face direction of npc and tell player to move away back from that
it has step backward but that only from player actor face direction
I think yes I dont understand which command to use
In Conditional Branch he can choose the direction the Event is Facing, therfor we also know from which direction it got triggered.

Code:
◆Set Movement Route:Player (Wait)
:                  :◇Direction Fix ON
◆If:This Event is facing Down
  ◆Set Movement Route:Player (Skip)
  :                  :◇Move Down
  ◆
:End
◆If:This Event is facing Left
  ◆Set Movement Route:Player (Skip)
  :                  :◇Move Left
  ◆
:End
◆If:This Event is facing Right
  ◆Set Movement Route:Player (Skip)
  :                  :◇Move Right
  ◆
:End
◆If:This Event is facing Up
  ◆Set Movement Route:Player (Skip)
  :                  :◇Move Up
  ◆
:End
◆Wait:1 frame
◆Set Movement Route:This Event (Skip, Wait)
:                  :◇1 Step Forward
◆Set Movement Route:Player (Wait)
:                  :◇Direction Fix OFF
◆Set Movement Route:This Event
:                  :◇Wait:60 frames

Code is tested and seems to work.
If you run into the Event it will retrigger Everytime, but the Last Moveroute with the 60Frames wait, will let the Event wait one second before it chases after you or before it retriggers you(maybe there is a better solution for that?), in case you get caught in a corner of the Map.
I just tested with an Event on Approach Player Movement.
thank you Bex
I already figure it out and come to edit the tread
it's the same code as you say
but with stupid if in if haha -...-
now I want some collapse function for these branch
What is a "collapse function" ? And where and why do you need one?
And yeah it doesnt matter if the ifs are in the ifs or not in this case. =)
no... it's a joke
but I can't make good joke with my poor english
collapse = hide the long mess branch that I did -....-

and...
now I had other problem with this function combo with mog hunter sensor event plugin
(plugin that detect player coming near event then change event selfswitch)
something wrong and I can't control my character -0-
but I know this is specific issue can't ask you haha -...-
Not me but the community you can ask.
You mean you cant control your Player or do you mean the Event? What exactly is happening?
nah
already find it out
my stupid copy paste event page
I forgot to turn auto run of -....-
thank you

Original thread: https://forums.rpgmakerweb.com/threads/move-player-problem-solved.105327/