I want my sprite to follow the (path) circumference of a circle.
When I press the left arrow key the sprite should move left following the path and when I press the right arrow key the sprite should move back right.
I've tried using the formula
X1 = X + radius * cos(angle)
Y1 = Y + radius * sin(angle)
But I'm not sure if I'm heading in the right direction
I've uploaded an example. The blue sprite should follow along the black path.
I hope someone can help me out on this one.