hero-mark-2/objects/environment/bubble/bubble.tscn
2023-06-21 22:08:29 -04:00

29 lines
896 B
Text

[gd_scene load_steps=4 format=2]
[ext_resource path="res://graphics/particles/bubble.png" type="Texture" id=1]
[ext_resource path="res://objects/environment/bubble/bubble.gd" type="Script" id=2]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 5, 5 )
[node name="Bubble" type="Area2D"]
script = ExtResource( 2 )
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )
hframes = 4
vframes = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="ActivationTimer" type="Timer" parent="."]
wait_time = 0.2
one_shot = true
autostart = true
__meta__ = {
"_editor_description_": "timer until the bubble can be broken by objects other than the player"
}
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
[connection signal="body_entered" from="." to="." method="_on_Bubble_body_entered"]