I have a an SKSpriteNode for my _player and there are two children to the _player node that make up my character.
the sprites with this configuration have the character facing right.
when I need the character to face left I tried using xScale = -1.0 but when I do that it does not appear that the frames reflect what is seen on the screen because my CGRectIntersectsRect behaves as if the character was still facing the original direction.
in addition to the cgrect problem I was rotating the character towards objects so I end up having to do something like this:
if( sprite.xScale == -1.0){
sprite.zRotation = atan2f(direction.y, direction.x);
} else {
sprite.zRotation = atan2f(-direction.y, -direction.x);
}
Whats the proper way to flip the player. It seems like the math is going to get unnecessarily complicated for my collision detections if I use xScale. Do I need two instances of the player one facing each direction. Do I need two sets of sprites?