Author Topic: [XP] Ambient SFX  (Read 4731 times)

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3247
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
[XP] Ambient SFX
« on: May 02, 2011, 06:39:09 AM »
Ambient SFX
Authors: ForeverZer0
Version: 1.1
Type: Environment Add-on
Key Term: Environment Add-on

Introduction

This system will play SE at intervals in addition to the BGM/BGS. You can configure each map separately with its own array of SE to play. The SE will played randomly and will be played at random intervals (configurable).

Features

  • Each map can be configured separately
  • Can use as many different SFX as you want for each map
  • Provides a more 'random' effect than a simple looping BGM/BGS
  • Temporary changes or enabling/disabling with script calls
  • Perfect for bird chirps, insect SFX, etc.

Screenshots

Kind of hard for sound effects...

Demo

Demo Link

Script

Click here for the script.
(click to show/hide)

Instructions

Place script below Game_Map and above "Main". There are instructions for configuration in the script.

Compatibility

No known compatibility issues.

Credits and Thanks

  • ForeverZer0, for the script

Author's Notes

Try to avoid using WAV files for the SFX. I have found that this can cause lag occasionally when the SE is played. Use .OGG or .MIDI. Although RMXP does not support playing them streaming, their small file size and good compression make them good for such a thing.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline Holyrapid

  • Astral Trancist
  • *****
  • Posts: 749
  • LV: 0
  • Gender: Male
  • Credit to FreshL on Deviantart
    • View Profile
    • My new Youtube channel!
Re: [XP] Ambient SFX
« Reply #1 on: May 02, 2011, 06:56:59 AM »
Sounds nice, i'm gonna check it out some time later...

Offline Kise

  • Awakened Visionist
  • **
  • Posts: 51
  • LV: 1
  • Gender: Male
    • View Profile
Re: [XP] Ambient SFX
« Reply #2 on: April 25, 2015, 06:15:22 PM »
Really good script :) But sometimes the same sound is played twice, is there any way to fix that? Im using seven sounds on map, so i don't thing it's just coincidence.

( Sorry for posting it here, I didn't wanted to create new theard for small thing like that )
« Last Edit: April 25, 2015, 06:48:34 PM by Kise »

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3247
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Ambient SFX
« Reply #3 on: April 25, 2015, 08:20:14 PM »
If I remember correctly, it chooses the sound randomly from what is available, therefore it is possible the same sound can be used twice in a row. Although it is not often, it can happen. It would be like rolling a seven sided dice and getting the same number twice.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline Kise

  • Awakened Visionist
  • **
  • Posts: 51
  • LV: 1
  • Gender: Male
    • View Profile
Re: [XP] Ambient SFX
« Reply #4 on: April 25, 2015, 08:50:42 PM »
I know it is possible, but they're not playing in a row, they're playing almost at the same time. If it's really just coincidence, then sorry for bothering you.