forked from team-sg/hero-mark-2
added sound test
This commit is contained in:
parent
79667b593c
commit
f14e8ebdd0
21 changed files with 734 additions and 2 deletions
15
menus/back_button.gd
Normal file
15
menus/back_button.gd
Normal file
|
@ -0,0 +1,15 @@
|
|||
extends TextureButton
|
||||
|
||||
export var next_scene: PackedScene
|
||||
onready var sprite = $AnimatedSprite
|
||||
|
||||
func _process(delta):
|
||||
if has_focus():
|
||||
sprite.playing = true
|
||||
else:
|
||||
sprite.playing = false
|
||||
sprite.frame = 0
|
||||
|
||||
func _gui_input(event):
|
||||
if event.is_action_pressed("ui_accept"):
|
||||
SceneManager.current_scene = next_scene.instance()
|
Loading…
Add table
Add a link
Reference in a new issue