flashlight_seconds

This commit is contained in:
Spencer Killen 2023-01-02 23:48:46 -07:00
parent 22ac0db4aa
commit d795e6efd8
Signed by: sjkillen
GPG Key ID: F307025B65C860BA
3 changed files with 12 additions and 1 deletions

View File

@ -38,6 +38,12 @@
"name": "bb_counter", "name": "bb_counter",
"type": 0, "type": 0,
"value": "0" "value": "0"
},
{
"id": "1672728461-648",
"name": "flashlight_seconds",
"type": 0,
"value": "0.0"
} }
] ]
} }

View File

@ -29,7 +29,8 @@
"1667755202-648", "1667755202-648",
"1667770005-207", "1667770005-207",
"1672699752-574", "1672699752-574",
"1672699872-250" "1672699872-250",
"1672728461-648"
], ],
"folders": { "folders": {

View File

@ -22,3 +22,7 @@ func toggle():
visible = not visible visible = not visible
$AudioStreamPlayer.pitch_scale = rand_range(0.5, 1.2) $AudioStreamPlayer.pitch_scale = rand_range(0.5, 1.2)
$AudioStreamPlayer.play() $AudioStreamPlayer.play()
func _process(delta):
if visible:
Dialogic.set_variable("flashlight_seconds", Dialogic.get_variable("flashlight_seconds")+delta)