forked from team-sg/hero-mark-2
eel chompy animation
This commit is contained in:
parent
10a18a014e
commit
a8906f82f0
2 changed files with 25 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=10 format=2]
|
||||
[gd_scene load_steps=13 format=2]
|
||||
|
||||
[ext_resource path="res://objects/enemy/eel.gd" type="Script" id=1]
|
||||
[ext_resource path="res://graphics/enemy/eel_head.png" type="Texture" id=2]
|
||||
|
@ -15,6 +15,22 @@ extents = Vector2( 4.5, 2 )
|
|||
[sub_resource type="RectangleShape2D" id=9]
|
||||
extents = Vector2( 2, 2 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=10]
|
||||
atlas = ExtResource( 2 )
|
||||
region = Rect2( 0, 0, 14, 12 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=11]
|
||||
atlas = ExtResource( 2 )
|
||||
region = Rect2( 14, 0, 14, 12 )
|
||||
|
||||
[sub_resource type="SpriteFrames" id=12]
|
||||
animations = [ {
|
||||
"frames": [ SubResource( 10 ), SubResource( 11 ) ],
|
||||
"loop": true,
|
||||
"name": "chomp",
|
||||
"speed": 8.0
|
||||
} ]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=6]
|
||||
shader = ExtResource( 6 )
|
||||
shader_param/border_color = Color( 0, 0, 0, 1 )
|
||||
|
@ -47,14 +63,18 @@ offset = 8.0
|
|||
cubic_interp = false
|
||||
lookahead = 0.001
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="Head"]
|
||||
[node name="Sprite" type="AnimatedSprite" parent="Head"]
|
||||
position = Vector2( 4, 0 )
|
||||
z_index = 1
|
||||
texture = ExtResource( 2 )
|
||||
frames = SubResource( 12 )
|
||||
animation = "chomp"
|
||||
playing = true
|
||||
|
||||
[node name="Border" type="Sprite" parent="Head/Sprite"]
|
||||
[node name="Border" type="AnimatedSprite" parent="Head/Sprite"]
|
||||
material = SubResource( 6 )
|
||||
texture = ExtResource( 2 )
|
||||
frames = SubResource( 12 )
|
||||
animation = "chomp"
|
||||
playing = true
|
||||
|
||||
[node name="ShapeTransform" type="RemoteTransform2D" parent="Head"]
|
||||
position = Vector2( 2.5, 0 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue