police car weak point
This commit is contained in:
parent
324e7d437b
commit
8a173b968d
15 changed files with 203 additions and 9 deletions
12
utils/label_vfx/label_vfx.gd
Normal file
12
utils/label_vfx/label_vfx.gd
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class_name LabelVFX
|
||||
extends Label3D
|
||||
|
||||
func _ready() -> void:
|
||||
create_tween().tween_property(self, "position:y", position.y + 10, 2.)
|
||||
create_tween().tween_method((func(alpha: float):
|
||||
modulate.a = alpha
|
||||
outline_modulate.a = alpha
|
||||
), 1., 0., 1.).set_delay(.5) \
|
||||
.finished.connect(queue_free)
|
||||
|
||||
|
||||
1
utils/label_vfx/label_vfx.gd.uid
Normal file
1
utils/label_vfx/label_vfx.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://cgu05sn2klmf2
|
||||
12
utils/label_vfx/label_vfx.tscn
Normal file
12
utils/label_vfx/label_vfx.tscn
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[gd_scene format=3 uid="uid://cfgfg410c6qtc"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cgu05sn2klmf2" path="res://utils/label_vfx/label_vfx.gd" id="1_6m140"]
|
||||
|
||||
[node name="LabelVFX" type="Label3D" unique_id=1366577296]
|
||||
billboard = 1
|
||||
double_sided = false
|
||||
no_depth_test = true
|
||||
text = "Perfect!"
|
||||
font_size = 256
|
||||
outline_size = 96
|
||||
script = ExtResource("1_6m140")
|
||||
Loading…
Add table
Add a link
Reference in a new issue