# How do I ?

Get help using Construct 2

### » Sat May 20, 2017 3:25 pm

Rewriting what @R0J0hound said:

In your project, you have two parameters:
1. Sound per X degrees[/b]
"Every X degrees, I want the sound to be played"
2. [u]Rotation speed
"Every second, my object should rotate Y degrees"
So far, so easy.

Now you create a condition:
Every Z seconds

Under that condition, put your Play audio action.

Now replace Z in your condition by this combination of expressions:
Z = X/Y
or
Z = Sound per X degrees / Rotation Speed

Example:
• You want your sound to be played every 10 degrees that the object rotates
• Your object rotates with the "Rotate" behavior
Use this for the "Every Z seconds" condition:
Every "10 / Object.Rotate.Speed" seconds
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

### » Wed May 24, 2017 2:14 pm

my object is rotating 360 degrees and i would like to play a sound every 5 or 10 degrees ?
how can i done it ?
thank you
B
55
S
22
G
8
Posts: 896
Reputation: 9,366

### » Wed May 24, 2017 3:40 pm

Can you put a screenshot of the event that you are using to rotate the object?
Like my work? Fallow me on social media, and see my games on the arcade.
B
8
S
5
G
9
Posts: 298
Reputation: 5,402

### » Wed May 24, 2017 6:58 pm

You should check out a guy called jeremantor vids. He could show you how its done.
B
7
Posts: 14
Reputation: 309

### » Wed May 24, 2017 7:22 pm

imhotep22 wrote:Can you put a screenshot of the event that you are using to rotate the object?

i'm just using the rotate behaviour
B
55
S
22
G
8
Posts: 896
Reputation: 9,366

### » Wed May 24, 2017 9:26 pm

trying to done somthing like that
here the sound effect of the object rotates https://www.youtube.com/watch?v=dq77-8Qfr3M&t=34s
B
55
S
22
G
8
Posts: 896
Reputation: 9,366

### » Thu May 25, 2017 4:35 pm

B
55
S
22
G
8
Posts: 896
Reputation: 9,366

### » Sat May 27, 2017 1:09 am

how can i done like the video sound effect when the object rotate ?
B
55
S
22
G
8
Posts: 896
Reputation: 9,366

### » Sat May 27, 2017 1:36 am

B
55
S
22
G
8
Posts: 896
Reputation: 9,366

### » Sat May 27, 2017 3:26 am

can anyone helps me please ?
is that impossible ?
B
55
S
22
G
8
Posts: 896
Reputation: 9,366

Previous