# Fighting game - How to always make fighters face each other?

**URL:** <https://forums.unrealengine.com/t/fighting-game-how-to-always-make-fighters-face-each-other/270681>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE4-27, question\
**Created:** [January 7, 2022, 2:37am UTC](https://forums.unrealengine.com/t/fighting-game-how-to-always-make-fighters-face-each-other/270681 "2022-01-07T02:37:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [January 17, 2022, 6:21am UTC](https://forums.unrealengine.com/t/fighting-game-how-to-always-make-fighters-face-each-other/270681/2 "2022-01-17T06:21:35Z")

</div>

Ok, here is how I got to work. As always there is probably a ton of ways to do this in UE4, but this is how I achieved it.

As stated above I used the side scroller template, so I duplicated the side scroller player character as player 2.

You are going to want to make a really…really…big box collision to attach to the player. Name it “P2 A box”. It will be in front of the player or facing right for the fighting game.

Here is the L R S I used…

![P2Abox](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/7/a70f0465162d946563f663ccae0bbb8510ae4067.jpeg)

Now…duplicate the A box and rename it “P2 B box”. I changed the 8000 to -8000 so it just moved the duplicated box position to behind the player or to the left for a fighting game.

![P2Bbox](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/4/14d13e159c9a61a10286d0c656f94adbc75e4614.jpeg)

The boxes should now be back to back. Meeting in the middle of the player, the A box to the right, the B box to the left.

The video below tries to show that.

https://player.vimeo.com/video/666642765?h=aa67b15892&app_id=122963

Add the following code to your second player BP…

 ![Player2](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/0/30f03a94f7a69e867f1974f0217729d3ee93dfa3.jpeg)

Don’t forget to choose side scroller character (not 2) in the “Get Actor Of Class” node.

In player 1 you will not have to use the A, and B box system, instead, simply add the following code…

 ![Player1](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/4/749ce8fef8544b51cf619535e54006a52e2e220a.jpeg)

Don’t forget to choose side scroller character 2 in the “Get Actor Of Class” node.

The effect should be working now…demonstrated in the video below.

https://player.vimeo.com/video/666644911?h=5ef4de2578&app_id=122963

---

_[View the full topic](https://forums.unrealengine.com/t/fighting-game-how-to-always-make-fighters-face-each-other/270681)._
