1
Fork 0
mirror of https://github.com/Steffo99/looping-for-loops.git synced 2024-11-25 17:44:22 +00:00

🐞 Fix lööp color vanishing during the animation

This commit is contained in:
Steffo 2020-10-04 21:37:04 +02:00
parent ff85418c53
commit b5e9e6e9b0

View file

@ -9,7 +9,7 @@ signal picked_up
func _ready(): func _ready():
rng.randomize() rng.randomize()
$Sprite.modulate = Color.from_hsv(rng.randf_range(0.0, 1.0), 0.4, 1) $Sprite.self_modulate = Color.from_hsv(rng.randf_range(0.0, 1.0), 0.4, 1)
func _on_Loop_body_entered(body): func _on_Loop_body_entered(body):