Newer
Older
DungeonShooting / DungeonShooting_Godot / prefab / effect / Hit.tscn
  1. [gd_scene load_steps=8 format=2]
  2.  
  3. [ext_resource path="res://resource/sprite/effect/hit/hit2.png" type="Texture" id=1]
  4. [ext_resource path="res://resource/sprite/effect/hit/hit1.png" type="Texture" id=2]
  5. [ext_resource path="res://resource/sprite/effect/hit/hit4.png" type="Texture" id=3]
  6. [ext_resource path="res://resource/sprite/effect/hit/hit0.png" type="Texture" id=4]
  7. [ext_resource path="res://resource/sprite/effect/hit/hit3.png" type="Texture" id=5]
  8. [ext_resource path="res://src/game/effect/Hit.cs" type="Script" id=6]
  9.  
  10. [sub_resource type="SpriteFrames" id=1]
  11. animations = [ {
  12. "frames": [ ExtResource( 4 ), ExtResource( 2 ), ExtResource( 1 ), ExtResource( 5 ), ExtResource( 3 ) ],
  13. "loop": true,
  14. "name": "Hit",
  15. "speed": 20.0
  16. } ]
  17.  
  18. [node name="Hit" type="AnimatedSprite"]
  19. z_index = 5
  20. frames = SubResource( 1 )
  21. animation = "Hit"
  22. offset = Vector2( 1, 11 )
  23. script = ExtResource( 6 )
  24.  
  25. [connection signal="animation_finished" from="." to="." method="_on_Hit_animation_finished"]