Bug when having actor orbit reverse directions when triggered on a key press?

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).

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    Here's a simple version . . . .

    https://www.mediafire.com/?t7oi249ogci4m1l
  • AcuJJAcuJJ Member Posts: 1
    edited February 2014
    Thanks for the help...I'm pretty new using the software though...when I open your file I just get a blank white screen on GS, so I'm probably doing something wrong with that too =P

    I'm using PC if that makes a difference.
Sign In or Register to comment.