bullet counter

This commit is contained in:
Haze Weathers 2025-12-14 16:02:46 -06:00
parent 3f2b7e3bd3
commit 5f732e1e6f
7 changed files with 30 additions and 2 deletions

View file

@ -1,3 +1,7 @@
class_name Bullet extends Node2D
@export var is_player_bullet = false
func _init() -> void:
add_to_group(&"bullets")

View file

@ -59,3 +59,8 @@ frame_progress = 0.26925442
sprite_frames = SubResource("SpriteFrames_10vvt")
autoplay = "default"
frame_progress = 0.21053335
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
rect = Rect2(-4, -4, 8, 8)
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="queue_free"]