59 lines
1.7 KiB
Text
59 lines
1.7 KiB
Text
|
[gd_scene load_steps=7 format=2]
|
||
|
|
||
|
[ext_resource path="res://objects/characters/monsters/03/assets/sprite1.svg" type="Texture" id=1]
|
||
|
[ext_resource path="res://objects/characters/monsters/03/assets/sprite2.svg" type="Texture" id=2]
|
||
|
[ext_resource path="res://objects/characters/monsters/03/monster_03.gd" type="Script" id=3]
|
||
|
|
||
|
[sub_resource type="SpriteFrames" id=1]
|
||
|
animations = [ {
|
||
|
"frames": [ ExtResource( 1 ), ExtResource( 2 ) ],
|
||
|
"loop": true,
|
||
|
"name": "flying",
|
||
|
"speed": 10.0
|
||
|
} ]
|
||
|
|
||
|
[sub_resource type="CircleShape2D" id=2]
|
||
|
radius = 35.0
|
||
|
|
||
|
[sub_resource type="Animation" id=3]
|
||
|
resource_name = "shoot"
|
||
|
length = 0.5
|
||
|
tracks/0/type = "value"
|
||
|
tracks/0/path = NodePath("AnimatedSprite:modulate")
|
||
|
tracks/0/interp = 1
|
||
|
tracks/0/loop_wrap = true
|
||
|
tracks/0/imported = false
|
||
|
tracks/0/enabled = true
|
||
|
tracks/0/keys = {
|
||
|
"times": PoolRealArray( 0, 0.5 ),
|
||
|
"transitions": PoolRealArray( 1, 1 ),
|
||
|
"update": 0,
|
||
|
"values": [ Color( 1, 1, 1, 1 ), Color( 1, 0, 0, 1 ) ]
|
||
|
}
|
||
|
|
||
|
[node name="Monster03 Shape" type="ReferenceRect"]
|
||
|
margin_right = 630.0
|
||
|
margin_bottom = 70.0
|
||
|
script = ExtResource( 3 )
|
||
|
|
||
|
[node name="monster" type="StaticBody2D" parent="."]
|
||
|
position = Vector2( 0, 70 )
|
||
|
collision_layer = 0
|
||
|
collision_mask = 0
|
||
|
|
||
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="monster"]
|
||
|
position = Vector2( 35, -35 )
|
||
|
frames = SubResource( 1 )
|
||
|
animation = "flying"
|
||
|
playing = true
|
||
|
|
||
|
[node name="Collision" type="CollisionShape2D" parent="monster"]
|
||
|
position = Vector2( 35, -35 )
|
||
|
shape = SubResource( 2 )
|
||
|
|
||
|
[node name="Animation" type="AnimationPlayer" parent="monster"]
|
||
|
playback_process_mode = 0
|
||
|
anims/shoot = SubResource( 3 )
|
||
|
|
||
|
[connection signal="animation_finished" from="monster/Animation" to="." method="_on_Animatio_finished"]
|