From 518fa16866161c569f941ea6d25e2ecbf7a41e4c Mon Sep 17 00:00:00 2001 From: Zoey Kitt Date: Sat, 16 Nov 2024 18:26:50 -0600 Subject: Fiiiiiiine I'll just make Clippette visible instead of instantiating her --- scenes/main.gd | 7 +++++++ scenes/main.tscn | 1 + 2 files changed, 8 insertions(+) (limited to 'scenes') diff --git a/scenes/main.gd b/scenes/main.gd index dbfcd65..7e65562 100644 --- a/scenes/main.gd +++ b/scenes/main.gd @@ -3,6 +3,10 @@ extends Node2D # Called when the node enters the scene tree for the first time. func _ready() -> void: _on_microgame_spawn_timer_timeout() + + # Spawn Clippette??? + $Clippette.visible = true + # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta: float) -> void: @@ -17,6 +21,9 @@ func _on_microgame_spawn_timer_timeout() -> void: # Spawn a microgame window var window_scene = preload("res://scenes/microgames/ad/ad_window.tscn") var window_instance = window_scene.instantiate() + + print(type_string(typeof(window_instance))) + add_child(window_instance) # Randomize window position diff --git a/scenes/main.tscn b/scenes/main.tscn index c8332e0..af7a6d2 100644 --- a/scenes/main.tscn +++ b/scenes/main.tscn @@ -307,6 +307,7 @@ size = Vector2i(1280, 720) [node name="Stock ticker" parent="Stock ticker window" instance=ExtResource("4_0ankd")] [node name="Clippette" parent="." instance=ExtResource("5_6agvn")] +visible = false [node name="Score window" type="Node2D" parent="."] script = ExtResource("6_gvoxs") -- cgit v1.2.3