Switch Character Direction ASAP

Hey there, I was on these boards a long time ago, and now I need some help for a school project.

I am making a 3D platformer, and I need to have the character switch direction when the opposite key is pressed, I know it shouldn’t be that hard, but it isn’t working:

I was using one process with a boolean set to false.
When the character presses left, change the boolean to true.
If true, have the character run left and play left animation

***However, it resets after a second.

I would like to stay in the logic bricks, but I am willing to try Python, it would just need to e explained very well.

On a side note, the character is rigged, and parented to a cube for collision

Thanks, Spencer

What resets? The animation? If so click ‘Play’ and change it to ‘Loop End’ or ‘Loop Stop’. If you change the rotation of the cube and the cube is the parent and not the child, it should work fine (rotating the armature and char too) and not reset unless the boolean changes.

But how can I rotate the outer cube, servo?

Assuming everything is parented to the ‘outer cube’, then the only thing that needs to be rotated is the ‘outer cube’. Use simple motion (not servo) and use rotation.