Is there a way to use the "gather followers" command so that the followers stop just behind the player, instead of moving under the player's sprite? When walking around the followers stay behind the player just fine.
I'm using the 'gather followers' to transition between an event on the map and a player follower upon exiting a room, like so:
var charEvent = $gameMap._events[id];
if ($gamePlayer.direction() == 2) {
var x = $gamePlayer.x;
var y = $gamePlayer.y - 1;
}
if ($gamePlayer.direction() == 8) {
var x = $gamePlayer.x;
var y = $gamePlayer.y + 1;
}
if ($gamePlayer.direction() == 4) {
var x = $gamePlayer.x + 1;
var y = $gamePlayer.y;
}
if ($gamePlayer.direction() == 6) {
var x = $gamePlayer.x - 1;
var y = $gamePlayer.y;
}
charEvent.moveStraight(charEvent.findDirectionTo(x, y));
I haven't tested it of course but this is how I imagine it to be like :/ Edit: Now that I think about it, this might not work for all cases since the spot might be blocked...
Smart Pathfinding 2015.10.21 by Shaz Introduction This plugin allows you to set up smart pathfinding for events. How to use Add to your plugins folder (file name does not really matter, but I call mine SmartPath.js). There are no parameters to set. Use the plugin command SmartPath...
Thanks! Maybe it's indeed better to path the event to the player and then switch on followers, instead of using the gather followers option. In this case the path is quite straightforward, but for other situations I could try that pathfinding plugin!
I'm on YouTube moderating for an America's Funniest Home Videos livestream. They love having me there and I know spam when I see it. Tonight I had to put 3 different people in time out due to them spamming random letters. Nobody else could chat with their messages in the way!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.