Making the actor move in a circular path in response to a key press

The title is basically the just of it. I have an actor that I have set to move in one direction when the "up" key is pressed, and the other way with the "down" key in this path:

D cos ( T S % 360 ) + H )

Where D is the radius, T is time, S is speed, and H is the orbit point. The problems are:

a) The animation is choppy.

b) When the buttons are pressed, they don't start in the same place they were; they warp to a different spot.

c) I can't find out how to keep them on one side of the screen; I would just put on collides, but they sometimes warp to the other end of the screen, so the game will glitch

I would really appreciate someone's help on this. Thanks in advance!

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    Can you show us the rules for the actor's movement.
Sign In or Register to comment.