From b126484109429a9a48c979d5be55a12160a76405 Mon Sep 17 00:00:00 2001 From: pennyrigate Date: Sun, 10 Sep 2023 19:23:39 -0400 Subject: [PATCH] NO MORe Autoplay --- objects/hud/3d_text.tscn | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/objects/hud/3d_text.tscn b/objects/hud/3d_text.tscn index 7625d6c..847fdba 100644 --- a/objects/hud/3d_text.tscn +++ b/objects/hud/3d_text.tscn @@ -4,11 +4,15 @@ [ext_resource path="res://objects/hud/3d_text.gd" type="Script" id=2] [ext_resource path="res://ui/Kozuka Mincho Std H.otf" type="DynamicFontData" id=3] +[sub_resource type="SpatialMaterial" id=12] +albedo_color = Color( 0.439216, 0.780392, 0.658824, 1 ) + [sub_resource type="DynamicFont" id=8] font_data = ExtResource( 1 ) [sub_resource type="TextMesh" id=2] resource_local_to_scene = true +material = SubResource( 12 ) text = "TEXT" font = SubResource( 8 ) pixel_size = 0.05 @@ -257,9 +261,6 @@ tracks/4/keys = { "values": [ ExtResource( 1 ) ] } -[sub_resource type="SpatialMaterial" id=12] -albedo_color = Color( 0.439216, 0.780392, 0.658824, 1 ) - [sub_resource type="Animation" id=13] resource_name = "prey slaughtered" step = 0.05 @@ -420,6 +421,7 @@ anchor_right = 1.0 anchor_bottom = 1.0 script = ExtResource( 2 ) text = "TEXT" +text_material = SubResource( 12 ) [node name="Viewport" type="Viewport" parent="."] size = Vector2( 256, 192 ) @@ -444,7 +446,6 @@ environment = SubResource( 4 ) [node name="AnimationPlayer" type="AnimationPlayer" parent="Viewport"] unique_name_in_owner = true -autoplay = "prey slaughtered" anims/RESET = SubResource( 5 ) "anims/Zoom Entrance" = SubResource( 6 ) "anims/game over" = SubResource( 10 )