[gd_scene load_steps=9 format=2] [ext_resource path="res://Hazards/Poison/PoisonFood3.png" type="Texture" id=1] [ext_resource path="res://Hazards/Poison/PoisonFood1.png" type="Texture" id=2] [ext_resource path="res://Hazards/Poison/PoisonFood2.png" type="Texture" id=3] [ext_resource path="res://Hazards/Poison/Poison.gd" type="Script" id=4] [ext_resource path="res://Hazards/Poison/crunch.6.ogg" type="AudioStream" id=5] [sub_resource type="SpriteFrames" id=1] animations = [ { "frames": [ ExtResource( 2 ), ExtResource( 3 ), ExtResource( 1 ) ], "loop": true, "name": "default", "speed": 5.0 } ] [sub_resource type="RectangleShape2D" id=2] extents = Vector2( 17.5, 19 ) [sub_resource type="RectangleShape2D" id=3] extents = Vector2( 28, 25 ) [node name="Poison" type="RigidBody2D" groups=[ "Pellets", ]] modulate = Color( 0, 0.862745, 0, 1 ) collision_layer = 16 collision_mask = 6 script = ExtResource( 4 ) poisoned_color = Color( 0.529412, 1, 0.529412, 1 ) [node name="AnimatedSprite" type="AnimatedSprite" parent="."] frames = SubResource( 1 ) frame = 2 [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2( 1.5, 1 ) shape = SubResource( 2 ) [node name="Hitbox" type="Area2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"] shape = SubResource( 3 ) [node name="PoisonTimer" type="Timer" parent="."] wait_time = 2.0 one_shot = true [node name="DissolveTimer" type="Timer" parent="."] [node name="TweenPoison" type="Tween" parent="."] [node name="TweenEat" type="Tween" parent="."] [node name="TweenShoot" type="Tween" parent="."] [node name="TweenDissolve" type="Tween" parent="."] [node name="Crunch" type="AudioStreamPlayer" parent="."] stream = ExtResource( 5 ) [connection signal="body_entered" from="." to="." method="_on_Poison_body_entered"] [connection signal="area_entered" from="Hitbox" to="." method="_on_Hitbox_area_entered"] [connection signal="timeout" from="PoisonTimer" to="." method="_on_Timer_timeout"] [connection signal="timeout" from="DissolveTimer" to="." method="_on_DissolveTimer_timeout"]