level select menu indicator
This commit is contained in:
parent
93656bdcfa
commit
8252ff66b8
4 changed files with 68 additions and 1 deletions
|
@ -19,6 +19,14 @@ var resolution: Vector2
|
|||
|
||||
var current_scene: Node setget change_scene
|
||||
|
||||
var last_input_gamepad: bool = true
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if event is InputEventJoypadButton:
|
||||
last_input_gamepad = true
|
||||
elif event is InputEventKey:
|
||||
last_input_gamepad = false
|
||||
|
||||
## change the current scene
|
||||
func change_scene(new_scene: Node) -> void:
|
||||
# remove current scene if it exists
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue