Ok here is a new version of the program, just like last time you will need the Ess sound plug-in to run this properly. This version is the same as Ben’s last version with some slight updates to the sound, it is also a lot bigger nearly 4 meg now, sorry
These updates include…
– Changes to the sound play section to include a test function to see if that sound is already playing. This is to stop unneeded calling of the Ess.play and stop functions. (thanks Igor)
– The addition of a timer so that the sound update function is only called every ‘soundCooldown’ frames. This helps lower the lag caused by the sounds but it can lead to missed sound events, depending on how long the timer is.
– Fixing the sound sets for creatures so that it now plays the correct sound based on the animals actions and size instead of just calling random sounds.
– Added a full set of sounds for ‘small creatures’(creatures with a massGene of 0.2 or less). The sounds are now all part of a 2d array. The array is build in the form [Creatures size][event which causes the sound].