[gd_scene load_steps=9 format=3 uid="uid://bhsonnkuhv084"] [ext_resource type="Texture2D" uid="uid://45fgpfmo6jpm" path="res://sheet1.png" id="1_5g584"] [ext_resource type="Script" path="res://falling platform.gd" id="1_v2xtr"] [ext_resource type="Shader" path="res://shadow the hedgehog.gdshader" id="1_vheun"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_b4b3u"] shader = ExtResource("1_vheun") shader_parameter/radius = 5.0 shader_parameter/modulate = null [sub_resource type="RectangleShape2D" id="RectangleShape2D_vtajb"] size = Vector2(32, 5) [sub_resource type="RectangleShape2D" id="RectangleShape2D_jolii"] size = Vector2(32, 3) [sub_resource type="Animation" id="Animation_uia04"] resource_name = "shake" tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite2D:position") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.1, 0.1001, 0.2, 0.3, 0.4, 0.4001, 0.5, 0.6, 0.7, 0.7001, 0.8, 0.9), "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), "update": 0, "values": [Vector2(-16, -2), Vector2(-16, -2), Vector2(-16, -1), Vector2(-16, -3), Vector2(-16, -1), Vector2(-16, -2), Vector2(-16, -1), Vector2(-16, -3), Vector2(-16, -1), Vector2(-16, -2), Vector2(-16, -1), Vector2(-16, -3), Vector2(-16, -1)] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_texqf"] _data = { "shake": SubResource("Animation_uia04") } [node name="CharacterBody2D" type="CharacterBody2D"] material = SubResource("ShaderMaterial_b4b3u") script = ExtResource("1_v2xtr") [node name="Sprite2D" type="Sprite2D" parent="."] position = Vector2(-16, -2) texture = ExtResource("1_5g584") centered = false region_enabled = true region_rect = Rect2(16, 283, 32, 5) [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2(0, 0.5) shape = SubResource("RectangleShape2D_vtajb") [node name="Area2D" type="Area2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] position = Vector2(0, -3.5) shape = SubResource("RectangleShape2D_jolii") [node name="AnimationPlayer" type="AnimationPlayer" parent="."] libraries = { "": SubResource("AnimationLibrary_texqf") } [node name="CPUParticles2D" type="CPUParticles2D" parent="."] emitting = false amount = 5 one_shot = true direction = Vector2(0, 0) spread = 180.0 gravity = Vector2(0, 160) initial_velocity_min = 54.54 initial_velocity_max = 103.03 angular_velocity_min = -283.63 angular_velocity_max = -142.7 damping_min = 100.0 damping_max = 100.0 angle_min = -720.0 angle_max = 720.0 scale_amount_min = 0.0 scale_amount_max = 2.0 color = Color(0.54902, 0.309804, 0.262745, 1) [node name="cooldown" type="Timer" parent="."] wait_time = 3.0 one_shot = true [connection signal="body_shape_entered" from="Area2D" to="." method="_on_area_2d_body_shape_entered"] [connection signal="timeout" from="cooldown" to="." method="_on_cooldown_timeout"]