Bug when having actor orbit reverse directions when triggered on a key press?
AcuJJ
Member Posts: 1
I'm making a game with an overhead view and I want to have a shield move around the main character using the left and right buttons. In my first approach, I had the shield rotation constrained to the character rotation (so then the shield only has to move vector (1,0) or (-1,0) in relation to itself in order to orbit). Then I tried the one on tshirtbooth youtube tutorial as well.
Both methods work fine if I only go in one direction, but for some reason after changing directions a few times, the shield gets thrown off it's orbit...At first I just thought it was just being glitchy if I pressed left then right too close together or at the same time, but even with plenty of time in between, the orbit doesn't hold a circular path when alternating directions.
...any suggestions? I figure I'm just missing something easy, because the shield is only moving clockwise or counterclockwise around a fixed position (the character holding doesn't move in relation to the screen).
Both methods work fine if I only go in one direction, but for some reason after changing directions a few times, the shield gets thrown off it's orbit...At first I just thought it was just being glitchy if I pressed left then right too close together or at the same time, but even with plenty of time in between, the orbit doesn't hold a circular path when alternating directions.
...any suggestions? I figure I'm just missing something easy, because the shield is only moving clockwise or counterclockwise around a fixed position (the character holding doesn't move in relation to the screen).
Comments
https://www.mediafire.com/?t7oi249ogci4m1l
I'm using PC if that makes a difference.