I had set up the enemies so that they would chase you if you came within 3 tiles of them. This worked fine when I entered the map.
However, if I dodged any to move on to another map and then came back, the enemies no longer moved, no matter how close I got to them.
I tried this with 2 methods.
The first used YEP_EventChasePlayer with FOSSIL which uses script calls within the Route of a Custom Autonomous Movement. Fine until I changed maps.
I then used the following script call. Bear in mind that it has to be all one line as that is the only thing the script call box in Route Move will accept.
Again, runs fine unless I change map and then come back.
The only difference in the map between the first & second visit is that there is a bit of dialogue on autorun the first time.
If I reverse the process and start on the second map, the same thing happens when I return to it. It therefore does not seem to be a consequence of anything obvious on the map itself, just something about changing maps.
I am at a loss and would appreciate any insight that could be given.
Thank you.
EDIT
Further testing:
Put the enemies onto the normal 'Approach' autonomous move. Dodge them to get to another map. Return - and they do not move, just as in the other tests. It is beyond bizarre if even Approach doesn't solve my problem.
However, if I dodged any to move on to another map and then came back, the enemies no longer moved, no matter how close I got to them.
I tried this with 2 methods.
The first used YEP_EventChasePlayer with FOSSIL which uses script calls within the Route of a Custom Autonomous Movement. Fine until I changed maps.
I then used the following script call. Bear in mind that it has to be all one line as that is the only thing the script call box in Route Move will accept.
Code:
var x=$gamePlayer._x; var y=$gamePlayer._y; var idx=$gameMap.event(this._eventId).x; var idy=$gameMap.event(this._eventId).y; if((x>=idx-3)&&(x<=idx+3)){if((y>=idy-3)&&(y<=idy+3)){$gameMap.event(this._eventId).moveTowardPlayer()}else{$gameMap.event(this._eventId).setDirection(2)}}else{$gameMap.event(this._eventId).setDirection(2)}
The only difference in the map between the first & second visit is that there is a bit of dialogue on autorun the first time.
If I reverse the process and start on the second map, the same thing happens when I return to it. It therefore does not seem to be a consequence of anything obvious on the map itself, just something about changing maps.
I am at a loss and would appreciate any insight that could be given.
Thank you.
EDIT
Further testing:
Put the enemies onto the normal 'Approach' autonomous move. Dodge them to get to another map. Return - and they do not move, just as in the other tests. It is beyond bizarre if even Approach doesn't solve my problem.