I know there was a thread once... I want to create a charakter following the "main guy"

  • #1, by ptomaine-artFriday, 24. July 2015, 14:17 10 years ago
    Hi guys,

    long time no see. As introduced, I want to create a charakter who follows the main guy constantly. Think of a duo like in Sam & Max. I want to be able to talk to that char and to use him/her as an item.

    What would you do?

    Cheers,

    Ptomaine

    Newbie

    47 Posts


  • #2, by sebastianFriday, 24. July 2015, 14:25 10 years ago
    have a look at this when you want to use some random animations while chasing, too:
    http://www.visionaire-studio.net/mobile/#forum/thread/31412/1/

    Thread Captain

    2346 Posts

  • #3, by afrlmeFriday, 24. July 2015, 14:42 10 years ago
    Aisus! If you'd bothered searching or looking then you would have found the thread on the second page under forum.

    http://www.visionaire-studio.net/forum/thread/random-animati...

    @ Sebastian.204: your link just goes to mobile pinboard page. Yes the link is there in the text & in the tooltip on hover but the link doesn't go to the specified thread. Also you posted the mobile version of the site.

    Imperator

    7285 Posts

  • #4, by ptomaine-artFriday, 24. July 2015, 16:12 10 years ago
    @ AFRLme : Yes, I "bothered" indeed, but before I get to specials I want to know how to chase. Thanks for that constructive remark.

    Newbie

    47 Posts

  • #5, by sebastianFriday, 24. July 2015, 18:07 10 years ago
    @afrlme yes, that was because i was on a mobile device ^__^ . Thought it will be interpreded correctly by the forum when opening up on a desktop computer...

    Thread Captain

    2346 Posts

  • #6, by afrlmeFriday, 24. July 2015, 18:49 10 years ago
    You're welcome. grin Sorry currently suffering massive bloody heatwave here & my internet is going on & off like no the morrow.

    All you have to do to get a character to chase another character is use the chase action part & to get them to stop you use the stop chase action part. You can specify who should chase who & a radius to determine when character is caught as well as being able to add some actions to determine what should happen if character is caught.

    Imperator

    7285 Posts

  • #7, by ptomaine-artSaturday, 25. July 2015, 01:26 10 years ago
    That easy?! oO

    Thanks, AFRLme.^^

    Newbie

    47 Posts

  • #8, by OcttoManSunday, 26. July 2015, 19:45 10 years ago
    I use the thread to ask:

    I also have a following system in my game and i need to know how could automatically place "the follower" to the "main character" when change scene during the chase. With the addition that before i check a condition (if this is following or not).

    Now i do it manually with actions. In "one door", i put:
    'go' executed:
    Switch to scene "scene2" ; (current character)
    if condition 'following' is true ; (this condition is located in the follower_character)
    switch to "scene2"; (follower_character)
    End if
    


    Works fine, but i have a lot of scenes and i want create a script to copy-paste it in all scenes like "At Beggining of scene"

    One script to do something like:
    
    if "follower_name" condition following= true
    set  "follower_name" position to main_character.position
    End if
    


    Can i do it easily? With only actions i can´t do it.

    PD: I use 3.7.1

    Newbie

    16 Posts

  • #9, by afrlmeSunday, 26. July 2015, 21:06 10 years ago
    You could use a loop & listen out for scene change & then check if condition is true & if the npc is already on the same scene as the character & if not then set the npc to same scene as character & then set the npc chasing the character.

    To be honest I don't know if you could do it with action parts alone, well not globally at least.

    Imperator

    7285 Posts

  • #10, by OcttoManMonday, 27. July 2015, 09:29 10 years ago
    But i want put the follower in the same position of the main character when change to the scene, not only in the same scene. Many scenes have 2 "doors/ways". I need a way to position the follower in the same site as the main character instantly (if the condition x is true).

    I can´t do it only with actions (Only if i do it by hand on each output one by one).

    Newbie

    16 Posts

  • #11, by afrlmeMonday, 27. July 2015, 18:37 10 years ago
    Same theory / explanation as I mentioned in my last post, except you also set the npc position to the character position instead of just teleporting them to the same scene.

    Imperator

    7285 Posts