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/sound.oxw

    r7679 r7854  
    2929  >
    3030
    31   <AmbientSound ambientSource="Earth.ogg" looping="true" playOnLoad="true" />
    32   <AmbientSound ambientSource="Mars.ogg" looping="true">
     31  <WorldAmbientSound source="Earth.ogg" looping="true" playOnLoad="true" />
     32  <WorldAmbientSound source="Mars.ogg" looping="true">
    3333    <events>
    3434      <activity>
     
    4040      </activity>
    4141    </events>
    42   </AmbientSound>
    43   <AmbientSound ambientSource="Jupiter.ogg" looping="true">
     42  </WorldAmbientSound>
     43  <WorldAmbientSound source="Jupiter.ogg" looping="true">
    4444    <events>
    4545      <activity>
     
    5151      </activity>
    5252    </events>
    53   </AmbientSound>
     53  </WorldAmbientSound>
    5454
    5555
Note: See TracChangeset for help on using the changeset viewer.