testanimation(NOPLAY).tscn 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. [gd_scene load_steps=8 format=2]
  2. [ext_resource path="res://assets/AssetPLayerArrat1.png" type="Texture" id=1]
  3. [ext_resource path="res://assets/punch3.png" type="Texture" id=2]
  4. [ext_resource path="res://assets/punch4.png" type="Texture" id=3]
  5. [ext_resource path="res://assets/punch1.png" type="Texture" id=4]
  6. [ext_resource path="res://assets/punch2.png" type="Texture" id=5]
  7. [sub_resource type="SpriteFrames" id=1]
  8. animations = [ {
  9. "frames": [ ExtResource( 4 ), ExtResource( 5 ), ExtResource( 2 ), ExtResource( 3 ) ],
  10. "loop": true,
  11. "name": "default",
  12. "speed": 5.0
  13. } ]
  14. [sub_resource type="RectangleShape2D" id=2]
  15. extents = Vector2( 4.4934, 2.51096 )
  16. [node name="Node2D" type="Node2D"]
  17. [node name="AssetPLayerArrat1" type="Sprite" parent="."]
  18. position = Vector2( 341.188, 228.59 )
  19. scale = Vector2( 11.0694, 11.0694 )
  20. texture = ExtResource( 1 )
  21. [node name="AnimatedSprite" type="AnimatedSprite" parent="."]
  22. position = Vector2( 413.267, 261.531 )
  23. scale = Vector2( 11.1885, 11.1885 )
  24. frames = SubResource( 1 )
  25. frame = 3
  26. playing = true
  27. [node name="CollisionShape2D" type="CollisionShape2D" parent="AnimatedSprite"]
  28. position = Vector2( 1.46864, 0.497545 )
  29. shape = SubResource( 2 )