# How do I create round gear that turn other gear

Get help using Construct 2

### » Sun Dec 14, 2014 3:45 am

Hello,

I'm new here, I have a kid of 3 years and he love everything that turn he's autistic, I would like to build something for him
that can interact putting gear together and make them all turn.

thanks
B
3
Posts: 5
Reputation: 185

### » Sun Dec 14, 2014 5:16 am

System: Every tick -> Gear 2 set rotate to angle (-Gear1.angle * teeth ratio)

Repeat using Gear 3 on Gear 2's angle and so on.
B
10
S
2
G
2
Posts: 73
Reputation: 1,044

### » Sun Dec 14, 2014 6:31 am

it's work but I use sprite for the gear, if I want to move another gear ...... each teeth need to be a sprite group to the main gear and must be solid to make turn the other gear right? now I need to know how to group sprite and make each teeth solid.
B
3
Posts: 5
Reputation: 185

### » Sun Dec 14, 2014 11:18 am

This simple but you could do it like this
You do not have the required permissions to view the files attached to this post.
B
262
S
46
G
15
Posts: 2,000
Reputation: 41,919

### » Sun Dec 14, 2014 5:58 pm

Lord thanks that cool..

but I really need the teeth moving the other gear because my kid will move it or be able to add gear and put them together with differant color. you demo is very good but if I move the sprite to a gear the teeth will not match or will overlap the teeth..... it's pretty hard because I'm still learning and I don't know thing.... I use now pin to pin the teeth to the weel to make the gear but if I clone this gear it will not turn.
B
3
Posts: 5
Reputation: 185

### » Sun Dec 14, 2014 6:23 pm

There is no simple way to solve this problem. If you really want to rely on the collision engine to rotate these gears then you should make a circle and the pin a bunch of rectangles to it using some math to place them around the circumference evenly. Then use more math to make sure the teeth are of a sufficient size as not to jam.

Either way you'll need math and programming.
B
10
S
2
G
2
Posts: 73
Reputation: 1,044

### » Sun Dec 14, 2014 6:45 pm

You want behaviors Rotate, Solid, Pin, and Physics. Physics will lets one solid push another.
Last edited by Paradox on Sun Dec 14, 2014 7:04 pm, edited 1 time in total.
B
243
S
63
G
33
Posts: 903
Reputation: 40,791

### » Sun Dec 14, 2014 7:02 pm

yes it's work for now with one teeth sprite but how to instence the same teeth sprite along the round sprite , if i clone it it lost the event
B
3
Posts: 5
Reputation: 185

### » Wed Dec 17, 2014 4:53 am

You can copy-paste the sprite to create more instances of it that will retain existing behavior like collision detection.
B
10
S
2
G
2
Posts: 73
Reputation: 1,044