finishe pressurePlate
This commit is contained in:
parent
9432084b53
commit
6913816861
6 changed files with 52 additions and 43 deletions
|
@ -4,7 +4,7 @@
|
|||
[ext_resource type="Texture2D" uid="uid://cwf57p0osmc0w" path="res://textures/PressurePlate.png" id="1_st48m"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_c6ukx"]
|
||||
size = Vector2(24, 5)
|
||||
size = Vector2(24, 2)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_fulu2"]
|
||||
resource_name = "Disable"
|
||||
|
@ -21,21 +21,6 @@ tracks/0/keys = {
|
|||
"values": [1]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_7ggr5"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Sprite2D:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [1]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_xxdm0"]
|
||||
resource_name = "Enable"
|
||||
tracks/0/type = "value"
|
||||
|
@ -51,6 +36,21 @@ tracks/0/keys = {
|
|||
"values": [0]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_7ggr5"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Sprite2D:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [1]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_usrhb"]
|
||||
_data = {
|
||||
"Disable": SubResource("Animation_fulu2"),
|
||||
|
@ -59,13 +59,16 @@ _data = {
|
|||
}
|
||||
|
||||
[node name="PressurePlate" type="StaticBody2D"]
|
||||
collision_mask = 5
|
||||
collision_layer = 32
|
||||
collision_mask = 37
|
||||
script = ExtResource("1_7ar3x")
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
collision_layer = 32
|
||||
collision_mask = 5
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
position = Vector2(0, 9.5)
|
||||
position = Vector2(0, 11)
|
||||
shape = SubResource("RectangleShape2D_c6ukx")
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue