Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Player pass from other characters

  • #1, by TinTin 10 years ago Zitieren
    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?
  • #2, by afrlme 10 years ago Zitieren
    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.
  • #3, by TinTin 10 years ago Zitieren
    Ok.Got it. I'm going to try to define a radius for character. I'll ask if I had some questions.
    Thanks anyway