Music Synchronization

Get help using Construct 2

Post » Mon Jun 11, 2012 5:54 pm

First, I would like to say that Construct2 is an amazing piece of kit. It is, without a doubt, the most intuitive and fun-to-use games engine that I've come across. I love it.

I'm currently working on a rhythm game, similar to DDR or Guitar Hero. Normally the visuals and the music synch together perfectly, but if the player leaves the tab, or if the application stutters for whatever reason, the music gets a little bit ahead and the synchronization is ruined.

I did a little searching and found this topic from a few months ago, but it appears that no solution was available at the time.

I imagine that one solution would be to check the music time elapsed against the number of ticks passed, and if there is a discrepancy, then the music can be rewound accordingly. I don't see a way of checking "music time elapsed" or "go to this time" with the standard Construct2 commands, so are there any plug-ins that would allow me to do this? If not, is there another route that I can take?
B
19
S
5
Posts: 27
Reputation: 2,031

Post » Mon Jun 11, 2012 6:40 pm

Because of varied/bad browser support, fine audio control is simply not possible at the moment.sqiddster2012-06-11 18:40:32
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Mon Jun 11, 2012 6:51 pm

That's disappointing, but there must be some way of gathering the "now playing" position, even if it's in the form of a crude method like counting the number of bits streamed so far.
B
19
S
5
Posts: 27
Reputation: 2,031

Post » Tue Jun 12, 2012 4:57 pm

@SketchyLogic : you can ask @Ashley to add the support to
[quote]
audio.addEventListener('timeupdate',
[/quote]
to the Audio object. This help to have something sync to the music, by trigerring callbacks on various timecues.
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Tue Jun 12, 2012 9:06 pm

Sure, I'll send a message later. Thanks for the reply.
B
19
S
5
Posts: 27
Reputation: 2,031

Post » Mon Jul 02, 2012 4:06 pm

Any news on this?

I have the same exact problem, and Pode suggestion sounds the perfect solution for this.

Thank you!!!Quest2012-07-02 16:07:17
B
8
S
1
Posts: 19
Reputation: 724

Post » Mon Jul 02, 2012 9:55 pm

Yeah, this would be a very welcome update to the sound engine.
B
38
S
8
G
3
Posts: 438
Reputation: 6,869

Post » Tue Jul 03, 2012 12:31 am

I would like this feature added as well. My project will include a music rhythm minigame
B
14
S
5
G
4
Posts: 121
Reputation: 3,938

Post » Wed Jul 04, 2012 9:30 am

[QUOTE=ptbcomposer] I would like this feature added as well. My project will include a music rhythm minigame[/QUOTE]

Yes, my game will include something like a karaoke part, so audio sync is very important.

I hope a future release will include support for this :)

Thanks!!!
B
8
S
1
Posts: 19
Reputation: 724

Post » Fri Aug 31, 2012 9:03 pm

Any word on whether or not anything has improved since july?
B
28
S
6
G
5
Posts: 248
Reputation: 5,463

Next

Return to How do I....?

Who is online

Users browsing this forum: theosciandra and 26 guests