Исправление анимации шипов, а также изменение их логики (исправление логики при закрытии, увеличение времени в убранном состоянии, уменьшение коллайдера)

This commit is contained in:
Евгений Титаренко 2023-08-21 17:28:40 +03:00
parent f2675313f7
commit 3e60215e11
3 changed files with 19 additions and 15 deletions

View file

@ -2,10 +2,6 @@
[ext_resource type="Texture2D" uid="uid://l3v1hs32uxfp" path="res://sprites/tiles/floor/spikes/spikes_0001-sheet.png" id="1_xhodh"]
[sub_resource type="AtlasTexture" id="AtlasTexture_ebjk6"]
atlas = ExtResource("1_xhodh")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_my1hb"]
atlas = ExtResource("1_xhodh")
region = Rect2(32, 0, 32, 32)
@ -14,19 +10,28 @@ region = Rect2(32, 0, 32, 32)
atlas = ExtResource("1_xhodh")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_qhlyu"]
atlas = ExtResource("1_xhodh")
region = Rect2(64, 0, 32, 32)
[resource]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_ebjk6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_my1hb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nfdn1")
}],
"loop": false,
"name": &"activated",
"speed": 2.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_qhlyu")
}],
"loop": true,
"name": &"default",
"speed": 3.0
"speed": 5.0
}]