Monday, October 10, 2022
HomeGame DevelopmentPlay Sound on Fast Faucet Cocos Creator 3.5.0 - Cocos Creator

Play Sound on Fast Faucet Cocos Creator 3.5.0 – Cocos Creator


I’m attempting to play an sfx when participant faucet the display, quickly. SO, it’s not a single faucet, however quite a lot of faucets briefly moments.

I’ve tried these:

this.node.on( Node.EventType.TOUCH_START, (occasion) => {
           ....
            HAND.getComponent(AudioSource).play();
        },this);
this.node.on( Node.EventType.TOUCH_END, (occasion) => {
            ....
            HAND.getComponent(AudioSource).play();
        },this);

However each doesn’t work as what I wished. I want the SFX all the time play on every faucet no matter whether or not the earlier play session already completed or not.

My sport will runs on Android gadgets.

Anybody may give me suggestion on find out how to do it?


RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments