Fix some sound effects problems on android

This commit is contained in:
dariasteam 2017-10-01 23:13:33 +01:00
parent 96d3cbdb0c
commit db70b84b9c
18 changed files with 10 additions and 10 deletions

View file

@ -50,7 +50,7 @@ _update_shape_index = 0
config/polyphony = 1
config/samples = SubResource( 2 )
default/volume_db = 8.0
default/volume_db = 7.0
default/pitch_scale = 1.0
default/pan = 0.0
default/depth = 0.0

View file

@ -7,11 +7,12 @@ extends Node2D
onready var timer = get_node("next_cowbell_time")
export(float) var pitch_increment = 0.05
export(float) var base_pitch = 1.5
var pitch = 1
var pitch = base_pitch
func timer_timeout():
pitch = 1
pitch = base_pitch
func play_sound():
pitch += pitch_increment

View file

@ -22,8 +22,7 @@ func destroy():
yield(t, "timeout")
queue_free()
func _ready():
sound.set_random_pitch_scale(0.2)
func _ready():
sound.play("bullet_sound")
t.set_wait_time(LIFE_TIME)
t.set_one_shot(true)

View file

@ -85,11 +85,11 @@ params/anim_initial_pos = 0.0
params/volume_db = 6.0
params/pitch_scale = 1.0
params/attenuation/min_distance = 0.0
params/attenuation/max_distance = 764.0
params/attenuation/max_distance = 750.0
params/attenuation/distance_exp = 2.37841
config/polyphony = 1
config/polyphony = 4
config/samples = SubResource( 2 )
config/pitch_random = 0.0
config/pitch_random = 0.135
[connection signal="body_enter" from="." to="." method="_on_RigidBody2D_body_enter"]

View file

@ -146,7 +146,8 @@ drag_margin/bottom = 0.2
transform/scale = Vector2( 0.5, 0.5 )
script/script = ExtResource( 6 )
pitch_increment = 0.05
pitch_increment = 0.02
base_pitch = 1.5
[node name="next_cowbell_time" type="Timer" parent="cowbell_collector"]

View file

@ -108,7 +108,6 @@ initial_heart_pos = Vector2( 32, 0 )
]]
editor/display_folded = true
visibility/visible = false
script/script = ExtResource( 3 )
[node name="Bttn_U" type="TouchScreenButton" parent="Control/Buttons"]

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.