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

View File

@@ -41,15 +41,15 @@ animations = [ {
"name": "idle",
"speed": 25.0
}, {
"frames": [ ExtResource( 17 ), ExtResource( 1 ), ExtResource( 5 ), ExtResource( 6 ), ExtResource( 18 ) ],
"loop": true,
"name": "hit",
"speed": 25.0
}, {
"frames": [ ExtResource( 23 ), ExtResource( 30 ), ExtResource( 25 ), ExtResource( 19 ), ExtResource( 20 ), ExtResource( 26 ), ExtResource( 21 ), ExtResource( 27 ), ExtResource( 28 ), ExtResource( 31 ), ExtResource( 24 ), ExtResource( 22 ), ExtResource( 29 ), ExtResource( 32 ) ],
"loop": true,
"name": "run",
"speed": 25.0
}, {
"frames": [ ExtResource( 17 ), ExtResource( 1 ), ExtResource( 5 ), ExtResource( 6 ), ExtResource( 18 ) ],
"loop": true,
"name": "hit",
"speed": 25.0
} ]
[sub_resource type="RectangleShape2D" id=3]
@@ -59,6 +59,8 @@ extents = Vector2( 13, 14.5 )
extents = Vector2( 13, 14.5 )
[node name="Chicken" type="KinematicBody2D"]
collision_layer = 2
collision_mask = 5
script = ExtResource( 33 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
@@ -66,11 +68,15 @@ frames = SubResource( 1 )
animation = "run"
[node name="Area2D" type="Area2D" parent="AnimatedSprite"]
collision_layer = 0
collision_mask = 0
[node name="CollisionShape2D" type="CollisionShape2D" parent="AnimatedSprite/Area2D"]
position = Vector2( 0, 0.5 )
shape = SubResource( 3 )
one_way_collision_margin = 0.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 0, 0.5 )
shape = SubResource( 2 )
one_way_collision_margin = 0.0