help. rotation/connection between 2 objects

Get help using Construct 2

Post » Tue Apr 01, 2014 2:02 pm

Hi,

I need help ! :) (sorry, my english is not fluent)

I have a plateform (plateforme_rotation_01). This plateform is supposed to move when it is on collision with another object (aimant07) when we click on it.

The plateform is supposed to move 90° but it doesnt cause the other object doesnt follow the rotation.


In order :

- click on the magnet (aimant07)
- the polarity is changing and the magnet is moving to the plateform
- the plateforme is moving toward 90° (vertical --> horizontal).

But, the magnet is supposed to be attached to the plateform and follows the movement.


Thanks :)
You do not have the required permissions to view the files attached to this post.
B
2
Posts: 5
Reputation: 160

Post » Tue Apr 01, 2014 3:52 pm

Did you want something like this?
You do not have the required permissions to view the files attached to this post.
B
17
S
4
G
3
Posts: 172
Reputation: 1,933

Post » Tue Apr 01, 2014 4:27 pm

its exactly what i wanted !

how did you do it ? i saw a tutorial about "pin-pin" but they didnt show where i can find it :x

Thank you very much :)
B
2
Posts: 5
Reputation: 160

Post » Tue Apr 01, 2014 4:45 pm

If you select the magnet sprite, in the properties panel you can add the pin behavior to the magnet sprite.

So I made a collision event for the magnet.
When the magnet contacts the platform I pin it to the platform.
B
17
S
4
G
3
Posts: 172
Reputation: 1,933

Post » Tue Apr 01, 2014 4:49 pm

Ok, i understand :)

Thanks again ! !!
B
2
Posts: 5
Reputation: 160


Return to How do I....?

Who is online

Users browsing this forum: BackendFreak, brunopalermo, busydude and 28 guests