Ask here your questions to get help using GDevelop.
By komencanto
#44587 Playing around with sounds.
Can not figure out how to do this :oops: :

- While the key is pressed, play a sound
When the key is released - stop the sound

- Play the sound 10 times changing its pitch by X every time

- Play the sound for 0.5 sec.
User avatar
By loustak
#44590 [quote] While the key is pressed, play a sound When the key is released - stop the sound [quote]
Condition : the key is pressed stop the pause (you need to start the sound and pause it previously)
The key isnt pressed pause the sound
User avatar
By erdo
#44593
komencanto wrote:Playing around with sounds.
Can not figure out how to do this :oops: :

- While the key is pressed, play a sound
When the key is released - stop the sound

- Play the sound 10 times changing its pitch by X every time

- Play the sound for 0.5 sec.


I made an example project to illustrate how to do that:
(761.94 KiB) Downloaded 268 times


Hope it helps!
User avatar
By erdo
#44595
komencanto wrote:Thanks erdo for the great example! :mrgreen:


Cool! I want to see how you will use it! 8-)