more cutscene work
This commit is contained in:
parent
f7c60470a2
commit
fbac189239
13 changed files with 199 additions and 32 deletions
|
@ -23,6 +23,8 @@ func _physics_process(delta: float) -> void:
|
|||
func _input(event: InputEvent) -> void:
|
||||
if event.is_action_pressed("jump") and animation_player.current_animation_position < (cutscene_skip - Options.transition_speed_secs * 2.0):
|
||||
skip_cutscene()
|
||||
if event.is_action_pressed("debug_2"):
|
||||
animation_player.seek(60)
|
||||
|
||||
func skip_cutscene() -> void:
|
||||
Fade.fade_out(Options.transition_speed_secs)
|
||||
|
@ -39,6 +41,12 @@ func kill_cop() -> void:
|
|||
add_child(splatter)
|
||||
$Cop.queue_free()
|
||||
|
||||
func stop_music():
|
||||
Audio.ac_music.playing = false
|
||||
|
||||
func play_rumble_intro():
|
||||
Audio.play_music(load("res://audio/music/rumble_revolution_intro.ogg"))
|
||||
|
||||
func _notification(what: int) -> void:
|
||||
match what:
|
||||
NOTIFICATION_WM_FOCUS_OUT:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue