Jump to content

Ambient Sound


Dahak
 Share

Recommended Posts

Arancaytar did it in Express Delivery:

 

Code:
if (condition) == 1)	{	set_incidental_sound(1); // turn off normal sounds	play_sound(-150); // play another ambient sound	}

 

You could remove the condition, or set in a timer so that the sound will play again after a certain amount of ticks, or even turn incidental sounds back on.

Link to comment
Share on other sites

The trouble with this is what I mentioned above as far as I can tell. Your replacement sound will play once, then stop, and you'll get no indication of when that happens. Replaying the sound after a number of ticks is what I did in Stairway, but it doesn't really work very well since if the player decides to move around rapidly you'll cut off the sound to start it again, or if the player moves slowly there may be a lengthy period when the sound doesn't play at all. It functions, but not elegantly.

Link to comment
Share on other sites

  • 2 weeks later...

I did it like Niemand and Nikki said - restart it after a tick-timer that relied on an imprecise, empirical estimate of how quickly the party would explore.

 

If I had to do it again with more time, I'd probably just split the town instead. In my use case, it was done by walking through a door, which would have made a staircase feasible.

 

If you have a special event that changes it, duplicate towns are less nice - the mini-map will reset. I suppose the player might forgive the discontinuity if the intervening event (cutscene, big combat) is significant enough.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...