Angle reversing wrongly when turning
Franto
Member Posts: 779
Right now I'm re-tackling the angle problem from before where if an actors angle is say facing diagonally up, when they move the opposite direction, they are now looking the same angle, but downwards. I'm going to try to make it so that they just mirror themselves horizontally and are now still looking up diagonally but in the opposite direction and so on.
EDIT: I guess to better explain it, instead of turning the angle actor, I was thinking that let it remain stationary and when the character turns, the angle will just look in the opposite direction? No, wait, then the characters image will be backwards for angles that are in the opposite direction.
A good example of angles going wrong from my last experiment:
EDIT 2:
Also, I want to limit the angle direction to be between the points 90-0-275 so that it moves fluidly between those points when holding the button and to ensure the player doesn't go backwards. {Which is the function for setting a minimum and maximum again? I think I used it early on.}This way, the player can just simply turn left and those angles will still hold true{but the problem that arises is that 90 is at the bottom and 275 at the top now.} I'm gonna try to use some math and rotate to angle to mediate this, and if that doesn't work, I'm gonna try to find a way to flip the actor when turning so that 90 is still up when looking left.
EDIT: I guess to better explain it, instead of turning the angle actor, I was thinking that let it remain stationary and when the character turns, the angle will just look in the opposite direction? No, wait, then the characters image will be backwards for angles that are in the opposite direction.
A good example of angles going wrong from my last experiment:
EDIT 2:
Also, I want to limit the angle direction to be between the points 90-0-275 so that it moves fluidly between those points when holding the button and to ensure the player doesn't go backwards. {Which is the function for setting a minimum and maximum again? I think I used it early on.}This way, the player can just simply turn left and those angles will still hold true{but the problem that arises is that 90 is at the bottom and 275 at the top now.} I'm gonna try to use some math and rotate to angle to mediate this, and if that doesn't work, I'm gonna try to find a way to flip the actor when turning so that 90 is still up when looking left.