I want to play sound effects when Acceleration works.
However, I tried it with a smartphone but it did not work.
I tried the way to turn off the sprite when I moved the smartphone, but it succeeded.
Of course, it worked on on clicked.
When you click a button it's easy for the event to be true. On clicked, play audio. Your second event might never be true, set something else other than audio like 'destroy object' to check it is even being triggered with the touch. My guess is the touch event never works? Is acceleration ever > 10 ?
Develop games in your browser. Powerful, performant & highly capable.
thank you reply.
·Is acceleration ever > 10 ?
yes
I can not play sound with acceleration.
hi plinkie.
I was able to work the accelerator.
android →with gravity.
thank you plinkie