Creating fading music effect in Cocos2d-x 3.0


In case someone is having some sort of difficulty implementing fading music effects in Cocos2d-x 3.0, feel free to click link below and see my implementation.

I have inherited ActionInterval class for my MusicTo class, which means that it can be used as any Action in Cocos2d-x 3.0.

To fade out music completely in 1 second:

runAction(MusicTo::create(1.0f, 0.0);

One thought on “Creating fading music effect in Cocos2d-x 3.0

Leave a Reply

Your email address will not be published. Required fields are marked *

Begin typing your search term above and press enter to search. Press ESC to cancel.