mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-02 03:01:16 +00:00
Teleporter invisible mode
This commit is contained in:
parent
c0d44a2331
commit
e7729bc1c1
2 changed files with 24 additions and 0 deletions
|
|
@ -217,6 +217,19 @@ position = Vector2(-767, -412)
|
||||||
[node name="HealthStation" parent="Factory Tilemaps/Debug Room" instance=ExtResource("38_kuhg5")]
|
[node name="HealthStation" parent="Factory Tilemaps/Debug Room" instance=ExtResource("38_kuhg5")]
|
||||||
position = Vector2(-680, -360)
|
position = Vector2(-680, -360)
|
||||||
|
|
||||||
|
[node name="BossDebugTeleporterSource" parent="Factory Tilemaps/Debug Room" node_paths=PackedStringArray("Target") instance=ExtResource("30_8fdby")]
|
||||||
|
position = Vector2(-826, -455)
|
||||||
|
IsEnabled = true
|
||||||
|
Target = NodePath("../../BossDebugTeleporterDestination")
|
||||||
|
|
||||||
|
[node name="Label" type="Label" parent="Factory Tilemaps/Debug Room/BossDebugTeleporterSource"]
|
||||||
|
z_index = 2
|
||||||
|
offset_left = -17.0
|
||||||
|
offset_top = -23.0
|
||||||
|
offset_right = 23.0
|
||||||
|
text = "Boss Test"
|
||||||
|
label_settings = ExtResource("14_c4c20")
|
||||||
|
|
||||||
[node name="LargeTank" parent="Factory Tilemaps" instance=ExtResource("6_nkauc")]
|
[node name="LargeTank" parent="Factory Tilemaps" instance=ExtResource("6_nkauc")]
|
||||||
position = Vector2(-640, 54)
|
position = Vector2(-640, 54)
|
||||||
|
|
||||||
|
|
@ -322,6 +335,12 @@ position = Vector2(-1509, -256)
|
||||||
IsEnabled = true
|
IsEnabled = true
|
||||||
Target = NodePath("../Teleporter7")
|
Target = NodePath("../Teleporter7")
|
||||||
|
|
||||||
|
[node name="BossDebugTeleporterDestination" parent="Factory Tilemaps" node_paths=PackedStringArray("Target") instance=ExtResource("30_8fdby")]
|
||||||
|
position = Vector2(-1489, -345)
|
||||||
|
IsEnabled = true
|
||||||
|
Invisible = true
|
||||||
|
Target = NodePath("../Teleporter7")
|
||||||
|
|
||||||
[node name="Teleporter6" parent="Factory Tilemaps" node_paths=PackedStringArray("Target") instance=ExtResource("30_8fdby")]
|
[node name="Teleporter6" parent="Factory Tilemaps" node_paths=PackedStringArray("Target") instance=ExtResource("30_8fdby")]
|
||||||
position = Vector2(-808, -439)
|
position = Vector2(-808, -439)
|
||||||
IsEnabled = true
|
IsEnabled = true
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,9 @@ public partial class Teleporter : Activable
|
||||||
{
|
{
|
||||||
[Export]
|
[Export]
|
||||||
public bool IsEnabled { get; set; }
|
public bool IsEnabled { get; set; }
|
||||||
|
|
||||||
|
[Export]
|
||||||
|
public bool Invisible { get; private set; } = false;
|
||||||
|
|
||||||
public bool IsPrimed { get; private set; }
|
public bool IsPrimed { get; private set; }
|
||||||
|
|
||||||
|
|
@ -39,6 +42,8 @@ public partial class Teleporter : Activable
|
||||||
_particles.Emitting = false;
|
_particles.Emitting = false;
|
||||||
_particleTimer = 0;
|
_particleTimer = 0;
|
||||||
|
|
||||||
|
this.Visible = !Invisible;
|
||||||
|
|
||||||
if (IsEnabled)
|
if (IsEnabled)
|
||||||
{
|
{
|
||||||
_animatedSprite.Play("Active");
|
_animatedSprite.Play("Active");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue