BubbleParticle.tscn 868 B

123456789101112131415161718192021222324
  1. [gd_scene load_steps=4 format=3 uid="uid://bwjae1h1airtr"]
  2. [ext_resource type="Script" uid="uid://denfttv4kn7f6" path="res://Scripts/Parts/BubbleParticle.gd" id="1_kkawp"]
  3. [ext_resource type="Texture2D" uid="uid://b7h6b0yqyi2kh" path="res://Assets/Sprites/Particles/Bubble.png" id="2_ky4x1"]
  4. [sub_resource type="CircleShape2D" id="CircleShape2D_2b1vy"]
  5. radius = 2.0
  6. [node name="BubbleParticle" type="Node2D"]
  7. visibility_layer = 2
  8. script = ExtResource("1_kkawp")
  9. [node name="Sprite" type="Sprite2D" parent="."]
  10. texture = ExtResource("2_ky4x1")
  11. [node name="WaterDetection" type="Area2D" parent="."]
  12. position = Vector2(0, -8)
  13. collision_layer = 0
  14. collision_mask = 64
  15. [node name="Shape" type="CollisionShape2D" parent="WaterDetection"]
  16. shape = SubResource("CircleShape2D_2b1vy")
  17. [connection signal="body_exited" from="WaterDetection" to="." method="on_body_exited"]