Start music playing at specific time?

Start music playing at specific time?
0.0 0


Im developing games using cocos2d-iphone for iOS.
I implemented setCurrentTime for play mp3 file at specific time (second 30).
There’s some way to do it in cocos2d-x for android?
best regards.


an easy way would be to schedule actions


Thanks Jesus Bosch!
I mean start playing in the 30 second of the song, not stop playing.
I can’t find it :confused:
Thats weird.


you can schedule a ccaction with a ccdelay and then a callfunc after those 30 seconds. In that function you start the music / sound. I don’t know if it’s the best solution, but would work.


Do you mean start the track at time position 30?

If so, I don’t think you can do that on android.
As far as I can tell, there is not much you can do on the android version.

Play and stop seems to be the only options.