Stopping previous sound with delay

Get help using Construct 2

Post » Sat Jul 21, 2012 6:15 pm

Hi there,

I've made a simple music engine which is choosing which note to play next within the 7 notes octave. Now when the action gets intense it's starting triggering notes very quickly and after few voices stack up it's skipping the sound and triggering it with next available voice.

So i thought that if i give it a tag which is equivalent to the variable that is triggering the sound and then when next sound starts playing the variable is being used as a tag of a sound to stop playing after short delay. Well this doesn't seam to work, and sounds are still stacking.

Here's the shot from part of the system. There is 7 conditions in total but they not on the picture.
http://www.dropbox.com/s/00hjy1p43h3atsb/msystem.jpg

Thanksmegatronx2012-07-21 18:19:46
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Sat Jul 21, 2012 6:45 pm

vars.lastsound and not "vars.lastsound" (no quote)Yann2012-07-21 18:45:30
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Sat Jul 21, 2012 6:53 pm

Do you mean inside STOP?

If so I've tried that and it prompts me that "this parameter requires string and not a number"

EDIT@ ok, I've find out about converting vars in to strings and it works perfectly! :) Thanks for your help!megatronx2012-07-21 19:00:42
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Sat Jul 21, 2012 7:00 pm

Is the instance variable set to "number"? Try setting it to "text" instead.

Ah, second too late Nimtrix2012-07-21 19:01:08
B
27
S
8
G
8
Posts: 903
Reputation: 8,452


Return to How do I....?

Who is online

Users browsing this forum: jul, TELLES0808 and 22 guests