From 4597189f157834c80f56b12b701fd2b2a15c2798 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 8 Sep 2024 22:35:06 +0200 Subject: next commit --- Stages/Paths/Spawn.gd | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Stages/Paths/Spawn.gd (limited to 'Stages/Paths/Spawn.gd') diff --git a/Stages/Paths/Spawn.gd b/Stages/Paths/Spawn.gd new file mode 100644 index 0000000..5c62500 --- /dev/null +++ b/Stages/Paths/Spawn.gd @@ -0,0 +1,18 @@ +class_name Spawn +extends Node2D + +@export var next_node: Node2D + +var spawn_position: Vector2 + + +func _ready(): + spawn_position = $SpawnPosition.global_position + + +func get_rpc_properties(): + return { + "global_position": null, + "spawn_position": null, + "next_node": "res://Stages/Paths/PathNode.tscn", + } -- cgit v1.2.3