Chase/Follow character across all scenes

  • #1, by darren-beckettFriday, 09. October 2015, 15:26 9 years ago
    What's the easiest way to make a character chase/follow the current character through all future scenes?

    Great Poster

    384 Posts


  • #2, by afrlmeFriday, 09. October 2015, 15:45 9 years ago
    Check out this thread. Read it all, as there's a revised script on the second page. wink

    Imperator

    7285 Posts

  • #3, by darren-beckettFriday, 09. October 2015, 16:07 9 years ago
    That's great, so i'll have to just move the chasing character to the new scene if they're currently on a different scene to the current character?

    Great Poster

    384 Posts

  • #4, by afrlmeFriday, 09. October 2015, 17:22 9 years ago
    no, the script should do it all automatically if I remember correctly.

    I think I wrote it so that chasing character would stop after current character stops (except it called a called by other action part which contained a wait until character stops action part followed by a stop chasing action part, which was to prevent the chasing character stopping instantly.

    Then if character is walking it should check if x character is chasing & if not then it should start character x chasing the current character.

    Also if you change scene then it should check if x character is on same scene as current character & automatically swap it to the current characters scene.

    The script was created with being as global & hands free as possible in mind.

    Imperator

    7285 Posts

  • #5, by darren-beckettFriday, 09. October 2015, 17:32 9 years ago
    It doesn't currently check the scene.

    Great Poster

    384 Posts

  • #6, by afrlmeFriday, 09. October 2015, 17:34 9 years ago
    Check the script on the last page. I did say there was a revised script. Not that I remember exactly what it does as I wrote it a while ago.

    * edit: seems you are right. I vaguely recall writing a script that had the chasing character following the current character to the next scene. Maybe I wrote it for someone else in a different thread. Sorry.

    I guess you'll just have to add a set character to object or position action part for the chasing character after your change scene action part.

    Imperator

    7285 Posts

  • #7, by darren-beckettFriday, 09. October 2015, 17:39 9 years ago
    I have checked, it does not check scene.
    But it's a good starting point, thanks.

    Great Poster

    384 Posts

  • #8, by afrlmeFriday, 09. October 2015, 17:41 9 years ago
    I updated my post above with an edit. You are right. I might have written another script for someone else before & for some reason thought it was in the thread I linked.

    Imperator

    7285 Posts

  • #9, by sebastianSaturday, 10. October 2015, 11:06 9 years ago
    What would be the best way to implement some kind of chasing like in Sam& Max Hit the road. So that the chasing char is running around the scene more freely and maybe regarding to each scene to specific spots at random?

    Thread Captain

    2346 Posts

  • #10, by afrlmeSaturday, 10. October 2015, 12:13 9 years ago
    In Sam & Max he's not really chasing the character around. He just follows onto the same scene then there's probably a loop with a random value & an if query that determines if value = x then go to x object elseif... go to y object & so on. Then if you click on an exit object or something that requires both of them to be in the same position then the actions will reflect that. You could also add a wait until npc character stops action before triggering your actions to make sure he's not already walking to somewhere else, then send position to where you want him to be then another wait until character stop action before triggering your actions.

    It's all about loops, values & if queries.

    Imperator

    7285 Posts