Player Animation converted to Animation Tree
Level 1 Design Door Mechanism Core Gameplay Mechanism - In-Progress
This commit is contained in:
10
static/door/door.gd
Normal file
10
static/door/door.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
extends Node2D
|
||||
var is_opened = false
|
||||
func _open_level_door(should_open):
|
||||
if should_open and !is_opened:
|
||||
is_opened = true
|
||||
$door_opened.play()
|
||||
$AnimationPlayer.play("open")
|
||||
|
||||
func _ready():
|
||||
SignalBus.connect("open_level_door",self,"_open_level_door")
|
||||
Reference in New Issue
Block a user