- Joined
- Aug 18, 2015
- Messages
- 19
- Reaction score
- 2
- First Language
- Portugues
- Primarily Uses
Hi. I'm trying to control the "enemies" events to follow the player under specifics circunstances using js.
This function is called in the updateScene function from the Scene_Map and the events have their autonomous movement "Fixed".
I use the _chasePlayer to set the events to follow the player, and the results end up working.
But when I set the events to stop following the player (in the updateScene too), the events returns to the place where they had started, and I dont want that.
I tried different strategies to stop that, but doesnt work. Even setting the _moveSpeed to 0 doesnt prevent that from happening.
If anyone knows wth is happening, please, help
This function is called in the updateScene function from the Scene_Map and the events have their autonomous movement "Fixed".
I use the _chasePlayer to set the events to follow the player, and the results end up working.
But when I set the events to stop following the player (in the updateScene too), the events returns to the place where they had started, and I dont want that.
I tried different strategies to stop that, but doesnt work. Even setting the _moveSpeed to 0 doesnt prevent that from happening.
If anyone knows wth is happening, please, help

