Player Animation converted to Animation Tree

Level 1 Design
Door Mechanism
Core Gameplay Mechanism - In-Progress
This commit is contained in:
Indrajith K L
2022-04-18 01:21:58 +05:30
parent 31089507aa
commit 77b9080c3b
30 changed files with 433 additions and 177 deletions

10
static/door/door.gd Normal file
View 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")