GlobalAmbientSound |
|
---|---|
Ambient sounds are typically used for sounds that would be heard throughout the level. Some ambient sounds are used only in specific areas of the level. To specify an area in which the ambient sound is heard, use the X Min, X Max, Y Min, and Y Max fields. Note: It does not matter where on the level you place this logic, because the location of the sound is determined by the X Min, X Max, Y Min, and Y Max fields, but it is usually a good idea to place it near the area in which the sound is being played. |
|
Edit Objects Dialog Box | |
Logic: | GlobalAmbientSound |
Image Set: | GAME_WAPWORLDONLY_VOICE |
Animation: | LEVEL_AMBIENT_AMBIENT#LOOP replace the # with the area number of the graphics set being used (1 through 8) |
Damage: | 0 to 100 This field controls the volume of the ambient sound, 0 (softest) -> 100 (loudest) |
X Min: | 0 (default) leftmost pixel coordinate of the sound. This field sets the minimum X pixel coordinate where the sound can be heard (nX-2 is maximum value here) |
X Max: | 0 (default), nX-1 maximum rightmost pixel coordinate of the sound. This field sets the maximum X pixel coordinate where the sound can be heard (1 is minimum value here) |
Y Min: | 0 (default) topmost pixel coordinate of the sound. This field sets the minimum Y pixel coordinate where the sound can be heard (nY-2 is maximum value here) |
Y Max: | 0 (default), nY-1, maximum bottommost pixel coordinate of the sound. This field sets the maximum Y pixel coordinate where the sound can be heard (1 is minimum value here) |
Notes: The example nX-1 is the maximum value that may be entered, where 'nX' is the width of the map in pixels. For a level of 48 X 48 Tilez, nX = 32x48 = 1536, so nX-1 = 1535. The example nY-1 is the maximum value that may be entered, where 'nY' is the height of the map in pixels. For a level of 48 X 48 Tilez, nY = 32x48 = 1536, so nY-1 = 1535. |
|
Object Rectangles Dialog Box | |
Move Rect: | Description |
Left | This field sets the minimum 'ON' time the sound will play in milliseconds (1000 = 1 second) |
Top | This field sets the maximum 'ON' time the sound will play in milliseconds (2000 = 2 seconds) |
Right | This field sets the minimum 'OFF' time the sound will play in milliseconds (10000 = 10 seconds) |
Bottom | This field sets the maximum 'OFF' time the sound will play in milliseconds (20000 = 20 seconds) |