Menu

#171 FollowPerson and SetPersonX/Y are incompatible.

open
nobody
engine (73)
5
2003-09-26
2003-09-26
No

When A party train of characters moves to a new map in
my game, only the directly controlled character appears
in the correct location. If the chracters start from
the default entry point, there is no problem, however
if i use SetPersonX (or Y) it has no effect on
charcters who are "following"...

you can see this in Trial And error whenever your party
switches to a new map, the other charcters don't
appear right away.

Discussion

  • Brian Robb

    Brian Robb - 2003-09-28

    Logged In: YES
    user_id=387078

    Yeah, remember who is in the party and move them too.

    var party_list = new Array();

    function AddPerson(name) {
    party_list.push(name);
    }

    for (var i = 0; i < party_list.length; i++) {
    SetPersonX(party_list[i], x);
    }

     
  • Dennis Rosenfeld

    Logged In: YES
    user_id=499887

    Nope. This is a genuine bug I think, not just bad coding on
    my part. I've been doing what you suggested all along.
    Characters who are in "following" mode cannot be moved by
    setPersonX/Y. If I say: SetPersonX(party_list[1], 50); (and
    char named party_list[1] is following party_list[0] ) there
    is absolutely no effect. if i want to warp the following
    party, i have to un-follow them all, warp, and then
    re-assign them to be following.

     
  • Nobody/Anonymous

    Logged In: NO

    Ok, so SetPersonX/Y shouldn't veto itself if the person is
    following someone, also while I'm changing things I'll
    probably trying and make FollowPerson not move the person if
    they happen to be in the right place anyway.

     
  • Nobody/Anonymous

    Logged In: NO

    Maybe SetPersonX should offset the follower's movement
    queue?
    (So the person following instantly moves that much aswell)

     

Log in to post a comment.