forked from team-sg/hero-mark-2
stalactite wiggle
This commit is contained in:
parent
8f14ca22cb
commit
21c68de88f
3 changed files with 32 additions and 8 deletions
|
@ -1,10 +1,10 @@
|
|||
[gd_scene load_steps=7 format=2]
|
||||
[gd_scene load_steps=8 format=2]
|
||||
|
||||
[ext_resource path="res://graphics/stalactite/stalactite.png" type="Texture" id=1]
|
||||
[ext_resource path="res://objects/environment/stalactite/stalactite.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 4, 5 )
|
||||
extents = Vector2( 4, 2.5 )
|
||||
|
||||
[sub_resource type="Animation" id=4]
|
||||
length = 0.001
|
||||
|
@ -101,6 +101,23 @@ tracks/2/keys = {
|
|||
"values": [ false ]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id=5]
|
||||
resource_name = "wiggle"
|
||||
length = 0.1
|
||||
step = 0.025
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("Sprite:position")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = {
|
||||
"times": PoolRealArray( 0, 0.025, 0.05, 0.075, 0.1 ),
|
||||
"transitions": PoolRealArray( 1, 1, 1, 1, 1 ),
|
||||
"update": 0,
|
||||
"values": [ Vector2( 4, 3 ), Vector2( 3, 3 ), Vector2( 4, 3 ), Vector2( 5, 3 ), Vector2( 4, 3 ) ]
|
||||
}
|
||||
|
||||
[node name="Stalactite" type="Node2D"]
|
||||
script = ExtResource( 2 )
|
||||
|
||||
|
@ -129,10 +146,12 @@ autoplay = "idle"
|
|||
anims/RESET = SubResource( 4 )
|
||||
anims/disappear = SubResource( 2 )
|
||||
anims/idle = SubResource( 3 )
|
||||
anims/wiggle = SubResource( 5 )
|
||||
|
||||
[node name="RefreshTimer" type="Timer" parent="."]
|
||||
wait_time = 2.0
|
||||
one_shot = true
|
||||
|
||||
[connection signal="area_entered" from="Hitbox" to="." method="_on_Hitbox_area_entered"]
|
||||
[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_AnimationPlayer_animation_finished"]
|
||||
[connection signal="timeout" from="RefreshTimer" to="." method="_on_RefreshTimer_timeout"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue