The Dink Network

Reply to Re: Cricket sound effect

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
February 14th 2012, 05:03 PM
custom_msdink.png
MsDink
Peasant She/Her New Zealand
Tag - Umm.. tag, you're it? 
.wav's work for me
To add a .wav to a screen so when you walk thru it plays.
1. add the .wav file to the Sound directory (eg: cricket.wav)
2. add a line for your sound file to the start.c
load_sound("cricket.WAV", 50);

50 being the number you allocated it to in dink ini - just use the next sequential number
3. make a script eg (cricket.c)
void main(void)
 {
 playsound(50,22050,0,0,1);
 } 

4. attach that cricket.c script to the screen properties box (play with the frequency numbers till you get the sound effect you want)

or ...add it in the script for the sprite if using a sprite

Nice cricket wav file