Solarus-Games English Forum

Solarus => Development => Topic started by: ponderitus on May 13, 2017, 07:31:09 PM

Title: entity sounds
Post by: ponderitus on May 13, 2017, 07:31:09 PM
Does anyone know where the code is which selects the sounds entities make? I want to change the noise the chest makes when opening, I know how to change it for a chest on a map (as below), but i wanted to change all the sounds from the Alttp ones, like I also want to change the noise a block makes when pushed and so on.

function chest:on_opened()
  sol.audio.play_sound("chest_small")
end
Title: Re: entity sounds
Post by: MetalZelda on May 13, 2017, 10:23:09 PM
Just replace the sounds in /sounds, else if you want to have more sounds, you have to go through custom entities
Title: Re: entity sounds
Post by: ponderitus on May 13, 2017, 11:16:44 PM
cheers man, that was my quick fix, just rename my files to be named the same and delete the old ones