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.
You do not have the required permissions to view the files attached to this post.