Added enemy animations
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@ func _open() -> void:
|
||||
|
||||
func _close() -> void:
|
||||
sprite.play(ANIMATION_CLOSING)
|
||||
static_body.process_mode = Node.PROCESS_MODE_DISABLED
|
||||
static_body.process_mode = Node.PROCESS_MODE_INHERIT
|
||||
|
||||
|
||||
func _on_animation_finished() -> void:
|
||||
|
||||
@@ -111,7 +111,7 @@ shape = SubResource("RectangleShape2D_u7b5a")
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
material = ExtResource("1_xelsh")
|
||||
sprite_frames = SubResource("SpriteFrames_r8rhb")
|
||||
animation = &"closing"
|
||||
animation = &"closed"
|
||||
|
||||
[connection signal="body_entered" from="Area2D" to="." method="_on_area_entered"]
|
||||
[connection signal="body_exited" from="Area2D" to="." method="_on_area_exited"]
|
||||
|
||||
Reference in New Issue
Block a user