# How do I make an object move circular?

Get help using Construct 2

### » Sun Mar 16, 2014 5:08 pm

Hello people, I have an object and I want to make it move on border of a circle. To make it clear assume that you have 2 points on a circle which are named A and B. Let's put our object on point A. I want to move that object on the border of the circle but It will go to B and will come back to A. When user clicks on it, it will stop and new frame will be opened. Cheers!
B
4
S
1
G
1
Posts: 8
Reputation: 635

### » Sun Mar 16, 2014 6:11 pm

Do you know the radius of the circle?
B
5
Posts: 11
Reputation: 272

### » Sun Mar 16, 2014 6:21 pm

Here's what you do for simple solution. Use pin behavior to an INVISIBLE circle and pin on the VISIBLE circle and give rotate behavior too. Give it an image point (1) for your point A. You could also create a small invisible object and pin it to image point(1) and have it represent point A.
When Sprite reaches point A, Pin it, activate rotation.

Also, create an invisible object to represent point B.
When Sprite is "on collision" or "on overlap" with point B. Kill rotate and un-pin sprite and add any other event you need.

Voila !
B
76
S
23
G
3
Posts: 673
Reputation: 9,348

### » Sun Mar 16, 2014 9:07 pm

TheDom wrote:Here's what you do for simple solution. Use pin behavior to an INVISIBLE circle and pin on the VISIBLE circle and give rotate behavior too. Give it an image point (1) for your point A. You could also create a small invisible object and pin it to image point(1) and have it represent point A.
When Sprite reaches point A, Pin it, activate rotation.

Also, create an invisible object to represent point B.
When Sprite is "on collision" or "on overlap" with point B. Kill rotate and un-pin sprite and add any other event you need.

Voila !

Thank you for answer, I'll go for it. Is that possible to do that with "Sine" behaviour?
B
4
S
1
G
1
Posts: 8
Reputation: 635

### » Sun Mar 16, 2014 10:56 pm

I never thought of that although I would use rotate behavior.

There's 3rd party rotate behavior from REX plugins here :

https://dl.dropboxusercontent.com/u/5779181/C2Repo/index.html

I'm pretty sure it gives you better control, but don't quote me. I have it, but never used it.
B
76
S
23
G
3
Posts: 673
Reputation: 9,348