mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-15 06:53:47 +00:00
Added path to spawner
This commit is contained in:
parent
161580fa7b
commit
cee0a8fe8f
2 changed files with 4 additions and 1 deletions
|
|
@ -585,10 +585,11 @@ script = ExtResource("35_im0gw")
|
||||||
Enemy = ExtResource("36_6jwww")
|
Enemy = ExtResource("36_6jwww")
|
||||||
AutoSpawn = true
|
AutoSpawn = true
|
||||||
|
|
||||||
[node name="RogueliteEnemySpawner17" type="Marker2D" parent="Tilemaps/Actors"]
|
[node name="RogueliteEnemySpawner17" type="Marker2D" parent="Tilemaps/Actors" node_paths=PackedStringArray("Path")]
|
||||||
position = Vector2(100, 537)
|
position = Vector2(100, 537)
|
||||||
script = ExtResource("35_im0gw")
|
script = ExtResource("35_im0gw")
|
||||||
Enemy = ExtResource("36_6jwww")
|
Enemy = ExtResource("36_6jwww")
|
||||||
|
Path = NodePath("")
|
||||||
|
|
||||||
[node name="RogueliteEnemySpawner14" type="Marker2D" parent="Tilemaps/Actors"]
|
[node name="RogueliteEnemySpawner14" type="Marker2D" parent="Tilemaps/Actors"]
|
||||||
position = Vector2(92.6661, 332.966)
|
position = Vector2(92.6661, 332.966)
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,8 @@ public partial class RogueliteEnemySpawner : Marker2D, IActivable
|
||||||
|
|
||||||
public bool Spawned { get; private set; } = false;
|
public bool Spawned { get; private set; } = false;
|
||||||
|
|
||||||
|
[Export] public Path2D Path { get; private set; }
|
||||||
|
|
||||||
[ExportToolButton("Update Icon")] public Callable RedrawButton => Callable.From(Redraw);
|
[ExportToolButton("Update Icon")] public Callable RedrawButton => Callable.From(Redraw);
|
||||||
|
|
||||||
private EnemyFSMProxy _spawnedEnemy;
|
private EnemyFSMProxy _spawnedEnemy;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue