Added second outdoor scene after tutorial

This commit is contained in:
2025-07-11 00:17:31 +02:00
parent c7d56301fc
commit b77b6e3a52
3 changed files with 2277 additions and 3 deletions
+3 -2
View File
@@ -29,8 +29,9 @@ public partial class MVPDuck : Node2D
public async void MoveAfterDelay()
{
await ToSignal(GetTree().CreateTimer(1.0f), "timeout"); // 1.0f seconds
Position = _penTarget.GlobalPosition;
await ToSignal(GetTree().CreateTimer(1.0f), "timeout");
if(!_penTarget.Equals(null))
Position = _penTarget.GlobalPosition;
EmitSignal(SignalName.DuckCollected);
}