Announcement

Collapse
No announcement yet.

How to create two character that move in the opposite direction of each other?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to create two character that move in the opposite direction of each other?

    Hi, recently, I was having some difficulties with my game developing. I try to make two characters that move in the opposite directions of each other. I am not sure how to achieve it but I think maybe I need to use the AI bots to act as the second character. Therefore I post this to try to get some help from people that are more experienced with the engine and blueprint system. Thank you.

    #2
    If all you need is for them to move in the exact opposite direction, you can simply take the position of both character, make a vector between them, normalize that vector to 1 and negate it so it points the other way, than apply movement with that vector and multiply your character speed.
    If you want them to move away as far as they can from each other using pathing, you'll have to use an AI character and navmesh, giving your AI character the behavior to move away from the other character.

    Comment


      #3
      thx, I got it work now

      Comment

      Working...
      X