Sound & text with Timeline Object?

For questions about using Classic.

Post » Thu Aug 26, 2010 10:19 am

Hi all,

Is it possible to control sound & text at the same time with Timeline Object?
If, yes. How is the best way to do it?


Best regards,
B
34
S
8
G
7
Posts: 498
Reputation: 7,753

Post » Fri Aug 27, 2010 9:36 am

It certainly is, but you'll need to be a lot more specific for anyone to be able to help you.
B
2
G
2
Posts: 42
Reputation: 734

Post » Fri Aug 27, 2010 7:18 pm

Well yeah. that was a short description sorry.

Well, ive made some text dialogue with the help of the timeline object.
And i want to add my own speech to it.
I just want to find the simpliest way to do this, i know i can make a "if period "name" has started. Or "during" but isnt there an easier way?

I was thinking .ini or something?

or am i way off?

best,
Mike
B
34
S
8
G
7
Posts: 498
Reputation: 7,753

Post » Sat Aug 28, 2010 4:23 am

An ini would probably be the easiest, since you can just call a line at each time segment. It would also be easiest to edit and change if you desired to do so.

Sounds like you may be doing something like a lyrics/karaoke system?

You could probably do this in a number of ways, but if it was me I'd probably be experimenting with an ini for sure.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Post » Sun Aug 29, 2010 6:21 am

Ok so what I think you're trying to do is add speech samples to supplement the text.

So:
(I'm using example paths and so on, but just substitute for your data structure).

On start of period "blah1"
Xaudio2 autoplay file "Audio\Speech\NPC\bob_blah1.wav"
[color=#BF40FF:etk1c15h]Play the sound file.[/color:etk1c15h]
Set Variable_Holder_SpriteObject.value('Last_Speech") to xaudio.lastplayed
[color=#BF00FF:etk1c15h]This saves the number of the last channel in a variable holder object, substitute with a global if that's your preference. This is so that you can stop the specific sound playing if the player skips this line of dialogue.[/color:etk1c15h]
Dialog_text write "What began as a conflict over the transfer of consciousness from mind to machine would escalate into a war that would span over 4,000 years, and destroy thousands of worlds"
[color=#BF40FF:etk1c15h]Type the actual dialogue into the text box. Adjust speed to match your sound file.[/color:etk1c15h]

On end of period "blah 1"
Xaudio stop channel Variable_Holder_SpriteObject.value('Last_Speech')

On start of period "blah2"
rinse, lather, repeat.
B
2
G
2
Posts: 42
Reputation: 734

Post » Sun Aug 29, 2010 8:55 am

Squish

Thanks for your input!

That was perfect! thanks alot for the help!
I'll give it a go later today, thanks for the easy guideline!


Best,
Mike
B
34
S
8
G
7
Posts: 498
Reputation: 7,753

Post » Sun Aug 29, 2010 2:05 pm

[quote="Squish":30efjfh0]What began as a conflict over the transfer of consciousness from mind to machine would escalate into a war that would span over 4,000 years, and destroy thousands of worlds[/quote:30efjfh0]

It's Flesh to machines. And It's a million worlds. :mrgreen:
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Sun Aug 29, 2010 2:50 pm

Thanks Davio - I was a little rusty on those parts. Those exact two points are literally where I stopped and thought about it. :)
B
2
G
2
Posts: 42
Reputation: 734


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests