global action to stick a sound with a flyin hotspot?

  • Hello,

    I've a virtual tour with several scenes. In each one a picture is displayed through a flyin hotspot, then a sound is played with it. I'd like to use a global action in the flyin code:

    Code
    <action name="flyin">
    		if(hotspot[%1].flying == 0.0, hotspot[%1].resetsize(); calc_flyout_size(%1); );
    		if(hotspot[%1].oldscale === null, copy(hotspot[%1].oldscale, hotspot[%1].scale) );
                    ..................................................;
    		tween(hotspot[%1].rz, 0.0);
    		[b]playaudio();[/b]
    	</action>


    Then write a playaudio action in each scene with the proper name of the sound:


    Problem is that in the next scene, the sound displayed is the same than in the previous one. Any flag to put in the loadscene action, to ignore the previous playaudio(); and read the good one in the next scene?

    Thanks for any help. *smile*
    Steph.
    I

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!