repeater and compound projectile

This commit is contained in:
Rendo 2025-07-30 05:27:20 +05:00
commit 3d9f0f7423
9 changed files with 235 additions and 42 deletions

View file

@ -0,0 +1,22 @@
using Godot;
public partial class CompoundProjectile : Node2D
{
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
GetTree().ProcessFrame += ReleaseCompound;
}
public void ReleaseCompound()
{
GetTree().ProcessFrame -= ReleaseCompound;
foreach (var child in GetChildren())
{
child.Reparent(GetParent());
}
QueueFree();
}
}

View file

@ -0,0 +1 @@
uid://j6nq8w2n8532