User Tag List

Results 1 to 4 of 4

Thread: Background Ambience

  1. #1
    Lynel Revfan9's Avatar
    Join Date
    Jun 2005
    Location
    In front of a screen. I never leave.
    Age
    31
    Posts
    1,160
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    3,390
    Level
    18
    vBActivity - Bars
    Lv. Percent
    71.08%

    Background Ambience

    Nothing too complex, again, really just something to help get myself back into the feel of it.

    Code:
    START SETR sd0,d0; d0 is the number of frames between each sfx
     RNDR sd1,d1; d1 is the number of different sfx - 1
     ADDR sd1,d2; d2 is the number of the first sfx
     PLAYSOUNDR sd1; Be sure all of the sfx you want are in range!
    WAIT WAITFRAME
     SUBV sd0,1
     COMPAREV sd0,0
     GOTOTRUE START
     GOTOFALSE WAIT
    Instructions are in the code's comments. Be sure that all of the sfx you want to use are in range with each other. What do I mean by this? If say, the room is one full of birds, and you want bird tweets to be playing everywhere. If you have 3 different bird tweets, and you set the first one as 60, then the other 2 must be 61 and 62.

  2. #2
    &&
    ZC Developer
    Joe123's Avatar
    Join Date
    Sep 2006
    Age
    32
    Posts
    3,061
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    7,304
    Level
    26
    vBActivity - Bars
    Lv. Percent
    8.76%

    Re: Background Ambience

    So it plays a set of sound effects in a row with a certain gap between them?

  3. #3
    Developer
    ZC Developer

    Join Date
    Aug 2006
    Location
    Australia
    Age
    37
    Posts
    2,777
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    6,851
    Level
    25
    vBActivity - Bars
    Lv. Percent
    37.73%

    Re: Background Ambience

    I like that people are thinking of these sorts of flourishes for their quests.

  4. #4
    Lynel Revfan9's Avatar
    Join Date
    Jun 2005
    Location
    In front of a screen. I never leave.
    Age
    31
    Posts
    1,160
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    3,390
    Level
    18
    vBActivity - Bars
    Lv. Percent
    71.08%

    Re: Background Ambience

    Quote Originally Posted by Joe123 View Post
    So it plays a set of sound effects in a row with a certain gap between them?
    It doesn't play them in a row, it plays a random one out of the "range" you set. It's purely cosmetic, sure, but it can add a nice feel if you use it properly (for example, Owl Hoots and Wolf Howls in the background in Night scenes). It's no Z3 Freescroll, but it works.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social