Jepsi
1
Godot Version
4
Question
Hi, I was wondering how I would make the spotlight in my game non visible when the game starts.
extends SpotLight3D
func _process(delta):
if Input.is_action_just_pressed("flashlight"):
visible = !visible
$AudioStreamPlayer.play()
Monday
2
You can just click the eye icon next to the spotlight node to hide it by default.
Or change it in the ready function:
func _ready():
visible = false
1 Like
system
Closed
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.