Playing sound files in succession?

For questions about using Classic.

Post » Tue Oct 13, 2009 10:28 am

Playing sound files in succession. Basically, I want to play a sound file by using of a PV or something. Like if I have chain1.wav - chain7.wav.
Tried This:AppPath & "se\chainSprite.Value('PegSound').wav"
and this and the following.
AppPath & "se\chain""Sprite.Value('PegSound')" ".wav"
AppPath & "se\chain"Sprite.Value('PegSound')".wav"
AppPath & "se\chain"&"Sprite.Value('PegSound')""&.wav"
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Tue Oct 13, 2009 3:34 pm

You've got the AppPath bit right. You just need to do the same thing when adding in the Sprite value, put & either side of it:

AppPath & "se\chain" & Sprite('PegSound') & ".wav"

Remember:
[list:3n1q7s0r]
[*:3n1q7s0r]"" (two double-quotes) in a string turns in to ", ie: "hello ""world"" " gives: hello "world"[/*:m:3n1q7s0r]
[*:3n1q7s0r]Anything "in quotes" never changes, ie.: "You have Sprite('health') health" will literally give the text: You have Sprite('health') health[/*:m:3n1q7s0r][/list:u:3n1q7s0r]
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,610

Post » Tue Oct 13, 2009 5:46 pm

Sweet. Thanks.
B
11
S
3
G
8
Posts: 473
Reputation: 4,569


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests