Autoplaying a sound

For questions about using Classic.

Post » Mon May 02, 2011 1:15 am

I'm trying to autoplay a sound in my game, but it's not playing when the event that triggers it happens.
The sound is in a subfolder in the same folder as my game.
I'm using the "Autoplay file" action for my sound controller object; I did spell the file name correctly.

Specifically, the action reads
Sound: Autoplay file AppPath & "gunshot1.wav" (No loop)

It triggers on a single or double mouse click, if certain other conditions are met.
B
1
G
1
Posts: 8
Reputation: 441

Post » Mon May 02, 2011 1:28 am

you need to specify the sub folder so AppPath & "nameofsubfolder\gunshot1.wav"
B
2
G
1
Posts: 35
Reputation: 520

Post » Mon May 02, 2011 1:33 am

That did not work.
I tried AppPath & "Sounds\gunshot1.wav", with a result of exactly no sound coming out of my speakers. Is there something else I'm missing?

EDIT: NVM, it did work. I had to open up the action menu rather than editing it from the tooltip, for some reason.
B
1
G
1
Posts: 8
Reputation: 441

Post » Mon May 02, 2011 1:43 am

haha ok
B
2
G
1
Posts: 35
Reputation: 520


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest