Angle rotate to specific position on click/touch

Get help using Construct 2

Post » Sun Feb 23, 2014 11:22 pm

Hi

I have been struggeling with doing this correctly, so hoping one of you could help me out.

I tried to illustrate what it is i am trying to do:
Image

I want to switch the position of the two "ball" objects.
They need to change position when i click on either one of them
They should change position in a circular motion from the center position
They should end up and stop in the exact location the other started from

A small .capx if you need something to start with, it has the locations of the objects.
https://dl.dropboxusercontent.com/u/2560922/mobiledev/forum/rotateBalls.capx

Hope you can help.
B
20
S
6
G
4
Posts: 347
Reputation: 4,451

Post » Mon Feb 24, 2014 8:11 am

B
64
S
34
G
47
Posts: 1,194
Reputation: 30,882

Post » Mon Feb 24, 2014 6:43 pm

Thx @RamPackWobble

Great example. Had not though about using the pin behavior.
One minor thing is that your example loops 1 time to many, it should be 0-599 if it should be totally accurate.

Thanks alot for the example.
B
20
S
6
G
4
Posts: 347
Reputation: 4,451


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, Google [Bot], ignaciosimo and 45 guests