Исправление анимации шипов, а также изменение их логики (исправление логики при закрытии, увеличение времени в убранном состоянии, уменьшение коллайдера)
This commit is contained in:
parent
f2675313f7
commit
3e60215e11
3 changed files with 19 additions and 15 deletions
|
@ -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
|
||||
}]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue