0 Favourites

Audio event suggestion

  • Hi!

    I am creating some simple games that require some kind of music or audio sync with text (at some specific ponits in the audio timeline, some text must be displayed). Until now i am playing with a music track, next a numeric variable, with the "do every X secs" event, adding 1 to the variable every sec and checking every tick if the counter reached 20 secs, 45 secs, etc... Although this almost work, it is not reliable on all browers/mobile platforms, and loses sync or starts sooner/later than I want. (I hope i explained it well, my english is not so good <img src="smileys/smiley2.gif" border="0" align="middle"> )

    Do you think it would be possible to add a new event "do at audio playback time X" or something similar? It would be really great.

    I think it may be possible to do, reading about the audio tag property "currenttime":

    http://www.w3schools.com/html5/av_prop_currenttime.asp

    Thank you!!!! <img src="smileys/smiley4.gif" border="0" align="middle">

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • In the same topic (Audio) It would be also great to have a "pause" audio action.

    When I pause the game (with audio/text sync) using "set time scale to 0" the music remain playing. If I stop it, then I must play it from the beginning. Any chance to have the "pause" action?

    Thank you! :D

  • Hi again.

    If someone is interested I added a Pause/resume action to built-in audio plugin. I have not attached files because I don't know if it is allowed to post modified offical plugins here.

    Note: Altough it is working well on browsers, it is not on CocoonJS (sound pauses, but when resumed the audio plays from start and not from paused point.). As cocoonJS uses API_HTML5 I guessed a simple play() would work as on browsers... :/

    Thanks for reading! :D

  • Hi again.

    If someone is interested I added a Pause/resume action to built-in audio plugin. I have not attached files because I don't know if it is allowed to post modified offical plugins here.

    Note: Altough it is working well on browsers, it is not on CocoonJS (sound pauses, but when resumed the audio plays from start and not from paused point.). As cocoonJS uses API_HTML5 I guessed a simple play() would work as on browsers... :/

    Thanks for reading! :D

    This is a nice feature to be added for when the user changes tabs on the browser. ;]

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
0 Favourites
random bugs and suggestions
90 4,517
Tom's avatar
Tom Construct Team Founder
Unread hot topic
73 5,922
part12studios's avatar
part12studios
Unread hot topic
81 11,417
NathanClearyMusi's avatar
NathanClearyMusi