Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 11, 2011, 1:03:47 PM (13 years ago)
Author:
landauf
Message:

detached AmbientSound from BaseObject - AmbientSound can not be placed directly in a level file anymore
instead added WorldAmbientSound, a BaseObject which can be placed in a level file to create and control ambient sound

with this change, the level can be destroyed completely because WorldAmbientSound can be deleted immediately at the end of the level, while the AmbientSound remains active until it faded out.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/data/levels/presentationHS09b.oxw

    r7679 r7854  
    3535  >
    3636
    37     <AmbientSound ambientSource="Mars.ogg" looping="true" playOnLoad="true" />
     37    <WorldAmbientSound source="Mars.ogg" looping="true" playOnLoad="true" />
    3838
    3939   <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
     
    256256    <?lua end ?>
    257257
    258     <AmbientSound ambientSource="Earth.ogg" looping="true" playOnLoad="false">
     258    <WorldAmbientSound source="Earth.ogg" looping="true" playOnLoad="false">
    259259      <events>
    260260        <activity>
     
    262262        </activity>
    263263      </events>
    264     </AmbientSound>
     264    </WorldAmbientSound>
    265265
    266266    <SpawnPoint position="5000,0,2000" spawnclass=SpaceShip pawndesign=spaceshipassff  team=0 />
Note: See TracChangeset for help on using the changeset viewer.