[gd_scene load_steps=17 format=3 uid="uid://d2ainv86lt68a"] [ext_resource type="PackedScene" uid="uid://by6ndsjhlkmbt" path="res://Scenes/Prefabs/Blocks/BooRaceBlocks/BooOnOffBlock.tscn" id="1_qn0kk"] [ext_resource type="Texture2D" uid="uid://cv27sth0k3amk" path="res://Assets/Sprites/Blocks/SwitchSpike.png" id="2_kmalu"] [ext_resource type="JSON" path="res://Assets/Sprites/Blocks/SwitchSpikeBlock.json" id="3_gfl4j"] [ext_resource type="Script" uid="uid://cnheej0sxmoxg" path="res://Scripts/Parts/PlayerDetection.gd" id="3_kmalu"] [sub_resource type="AtlasTexture" id="AtlasTexture_m1hcn"] atlas = ExtResource("2_kmalu") region = Rect2(80, 0, 16, 16) [sub_resource type="AtlasTexture" id="AtlasTexture_prw4m"] atlas = ExtResource("2_kmalu") region = Rect2(96, 0, 16, 16) [sub_resource type="AtlasTexture" id="AtlasTexture_ieqkm"] atlas = ExtResource("2_kmalu") region = Rect2(112, 0, 16, 16) [sub_resource type="AtlasTexture" id="AtlasTexture_y0v5j"] atlas = ExtResource("2_kmalu") region = Rect2(0, 0, 16, 16) [sub_resource type="AtlasTexture" id="AtlasTexture_boqyf"] atlas = ExtResource("2_kmalu") region = Rect2(16, 0, 16, 16) [sub_resource type="AtlasTexture" id="AtlasTexture_m8vhp"] atlas = ExtResource("2_kmalu") region = Rect2(32, 0, 16, 16) [sub_resource type="AtlasTexture" id="AtlasTexture_yyfct"] atlas = ExtResource("2_kmalu") region = Rect2(48, 0, 16, 16) [sub_resource type="AtlasTexture" id="AtlasTexture_tnmt2"] atlas = ExtResource("2_kmalu") region = Rect2(64, 0, 16, 16) [sub_resource type="AtlasTexture" id="AtlasTexture_gfl4j"] atlas = ExtResource("2_kmalu") region = Rect2(0, 0, 16, 16) [sub_resource type="SpriteFrames" id="SpriteFrames_cjipk"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_m1hcn") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_prw4m") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ieqkm") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_y0v5j") }], "loop": false, "name": &"Off", "speed": 15.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_boqyf") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_m8vhp") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_yyfct") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_tnmt2") }], "loop": false, "name": &"On", "speed": 15.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_gfl4j") }], "loop": true, "name": &"Rest", "speed": 5.0 }] [sub_resource type="RectangleShape2D" id="RectangleShape2D_gfl4j"] size = Vector2(17, 18) [sub_resource type="RectangleShape2D" id="RectangleShape2D_fe1rr"] size = Vector2(16, 16) [node name="SwitchSpikeBlock" node_paths=PackedStringArray("hurtbox") instance=ExtResource("1_qn0kk")] hurtbox = NodePath("PlayerHurtBox/CollisionShape2D") [node name="Sprite" parent="." index="0"] sprite_frames = SubResource("SpriteFrames_cjipk") animation = &"Rest" autoplay = "Rest" [node name="ResourceSetter" parent="Sprite" index="0"] resource_json = ExtResource("3_gfl4j") [node name="Collision" parent="." index="1"] visible = true [node name="PlayerHurtBox" type="Area2D" parent="." index="3"] script = ExtResource("3_kmalu") metadata/_custom_type_script = "uid://cnheej0sxmoxg" [node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerHurtBox" index="0"] shape = SubResource("RectangleShape2D_gfl4j") disabled = true [node name="StaticBody2D" type="StaticBody2D" parent="." index="4"] [node name="StaticBody2D2" type="StaticBody2D" parent="." index="5"] collision_layer = 6 collision_mask = 0 [node name="Collision" type="CollisionShape2D" parent="StaticBody2D2" index="0"] shape = SubResource("RectangleShape2D_fe1rr") [connection signal="player_entered" from="PlayerHurtBox" to="." method="damage_player"]