Add positional sounds from the tilemap
This commit is contained in:
@@ -215,7 +215,7 @@
|
|||||||
{
|
{
|
||||||
"gid":17,
|
"gid":17,
|
||||||
"height":0,
|
"height":0,
|
||||||
"name":"",
|
"name":"backgroundmusic",
|
||||||
"properties":
|
"properties":
|
||||||
{
|
{
|
||||||
"sound_key":"background_music",
|
"sound_key":"background_music",
|
||||||
|
|||||||
@@ -100,11 +100,9 @@ SoundSprite.prototype.update_new_values = function() {
|
|||||||
this.sound_volume,
|
this.sound_volume,
|
||||||
this.sound_loop,
|
this.sound_loop,
|
||||||
this.sound_forcerestart);
|
this.sound_forcerestart);
|
||||||
console.log("Sound should be playing");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SoundSprite.prototype.adjust_relative_to = function(spr) {
|
SoundSprite.prototype.adjust_relative_to = function(spr) {
|
||||||
console.log(spr);
|
|
||||||
if ( this.sound_nofade == true ) {
|
if ( this.sound_nofade == true ) {
|
||||||
this.sound.volume = 1.0;
|
this.sound.volume = 1.0;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user