Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
I have a character running in the game and i want to trigger some sounds while he is running at random times, taking into account this is an endless running game.
Can someone help?
Develop games in your browser. Powerful, performant & highly capable.
Use the timer behavior.
On start layout, set timer to random(a,b) where a is the minimum time and b is the maximum time between sounds.
On timer complete, play sound, and set timer to random(a,b) again.
I use choose() for that :
System > Every X seconds, and for interval I use : choose(0,2,3,5,7) (in seconds), but can be more or less…