# Facing direction problem

**URL:** https://forum.kirupa.com/t/facing-direction-problem/237630
**Category:** programming
**Created:** [September 1, 2007, 10:27am UTC](https://forum.kirupa.com/t/facing-direction-problem/237630 "2007-09-01T10:27:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![four4swords](https://avatars.discourse-cdn.com/v4/letter/f/87869e/32.png) [@four4swords](https://forum.kirupa.com/u/four4swords)
#### Post date: [September 1, 2007, 10:27am UTC](https://forum.kirupa.com/t/facing-direction-problem/237630/1 "2007-09-01T10:27:51Z")

</div>

hey all,

I’ve been doing this Super smash bros + street figher… -like game…  
And i’m up to the animations for the “hurt” phrase…

What it does is that it animates when Player one hits player two…  
However… I want it to have a different scene… if Player ONE comes from behind and hits player 2 on the back…

What piece of actionscript can i use to detect if player2 is facing away from player one?

Thanks
