Player pass from other characters

  • #1, by TinTinWednesday, 30. March 2016, 16:02 5 years ago

    I saw player passed from other NPC . It's really bad situation specially for follow another person (chase). How can I write a command for all NPC as obstacle?

    Forum Fan

    195 Posts

  • #2, by afrlmeWednesday, 30. March 2016, 16:37 5 years ago
    It's a 2D engine so it's not that simple, but can probably be achieved in a similar manner to what I just provided you with inside of your other thread about preventing the character from walking if the player clicks too close to the character.

    Long story short, you listen out for when chasing character enters a specified radius & then you either make them stop or update their path. The latter will be fairly complicated though.

    P.S: you should actually be able to use the chase action section where you can set some actions to do if chasing character enters leader characters specified radius.


    6981 Posts

  • #3, by TinTinWednesday, 30. March 2016, 16:54 5 years ago
    Ok.Got it. I'm going to try to define a radius for character. I'll ask if I had some questions.
    Thanks anyway

    Forum Fan

    195 Posts

Write post