Hi,
yes, that would be possible,
define an action for the sound outside the scenes, and call this action on every scene onstart,
and before calling set a custom variable to the current scene name, and a other variable to the last one,
e.g.
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<scene name="scene1"
onstart="set(lastscene,get(currentscene)); set(currentscene,scene1); soundsetup();">
...
</scene>
<scene name="scene2"
onstart="set(lastscene,get(currentscene)); set(currentscene,scene2); soundsetup();">
...
</scene>
...
<action name="soundsetup">
if(lastscene == scene1,
if(currentscene == scene1, ...);
if(currentscene == scene2, ...);
);
if(lastscene == scene2,
if(currentscene == scene1, ...);
if(currentscene == scene2, ...);
);
</action>
|
best regards,
Klaus