Fake Button?

Get help using Construct 2

Post » Fri Feb 24, 2012 12:42 pm

Is it possible to create a fake button to auto-play a sound on start-up on an iPad...?
B
5
S
1
G
1
Posts: 111
Reputation: 1,122

Post » Sat Feb 25, 2012 2:50 am

A fake button?

i.e. ?


Don't know exactly what you're asking, but,
you can use touch to trigger an event to play a sound; Therefore we are emulating a button.


B
11
S
3
G
2
Posts: 110
Reputation: 2,410

Post » Sat Feb 25, 2012 3:12 am

It is a browser limitation that sound is to be played on an user action only.
It depends on your browser/device, not much that can be done about it. Think your design to work around this limitation.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Mon Feb 27, 2012 9:59 am

Hi chaps,

I've been doing some research on sound for iOS devices and I know you can't play a sound on start-up without a touch trigger. Apple doesn't want to autoplay video and audio on IPad because of the high amout of traffic you can use on mobile networks however I found that you can emulate a fake button which might play the sound but that was for older versions of iOS.

I was wondering if it was possible to achieve this in construct 2...
B
5
S
1
G
1
Posts: 111
Reputation: 1,122

Post » Mon Feb 27, 2012 10:32 am

You can trick.
Make a first layout (a splash screen ?) where your user has to "click" a button, and start playing music from there and take him to the next layout (system action "go to layout"/"go to layout (by name)").

That's what I meant by "Think your design around this limitation".
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Mon Feb 27, 2012 10:42 am

Thanks Kyatric,

It will have to do until Apple decides to change this.
B
5
S
1
G
1
Posts: 111
Reputation: 1,122


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, jeffige, Yahoo [Bot] and 1 guest