Menu
Login
Language
DE EN FR ES IT CZ
Back

Player pass from other characters

  • #1, by TinTin Wednesday, 30. March 2016, 16:02 10 years ago Quote
    Hi

    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

    196 Posts

  • #2, by afrlme Wednesday, 30. March 2016, 16:37 10 years ago Quote
    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.

    Imperator

    7290 Posts

  • #3, by TinTin Wednesday, 30. March 2016, 16:54 10 years ago Quote
    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

    196 Posts