Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
There is music playing at the beginning of my game when I click over the Splash page (the first Layout of a video game) or if I click a button on the Splash page. If I don't click anything the music doesn't start. I would like the music to start immediately when the Slash Page appears on the screen, so please give me a suggestion concerning the logic (code) I should use in the Event Sheet. Note that I use Construct 2.
System : on start of layout - play audio
I already use the exact same code that you gave me and It still doesn't work. The music doesn't start when the Splash page appears, I still have to click the layout or a button so the music can start.
Does the event sheet relate to that layout? Does clicking the splash go to a different layout?
Yes, the Event sheet is related to the Splash page's Layout. There is 3 button on the Slash page that brings you to three different layouts.
Not sure then sorry :) you'll have to share the file to see what's going on.
I do believe that this isn't possible, I think that there's a requirement that means a key press (interaction) has to occur before music will play.
I will see if I can find it documented.
Develop games in your browser. Powerful, performant & highly capable.
Per Ashley on this post...
Mobile web browsers actually prevent any audio playback until the first touch. After that sound can play at any time, but music is still limited to only being started in touches. There is no workaround in the browser, it's a limitation to stop websites annoying you with sound. If you build an APK, it doesn't have the restriction.