fix most of the script errors and warnings, fixed a couple tiny bugs in the process :)

This commit is contained in:
Haze Weathers 2024-03-08 15:11:48 -05:00
parent 9435089f21
commit 72733db609
23 changed files with 55 additions and 63 deletions

View file

@ -6,9 +6,13 @@ const BloodSpray := preload("res://objects/environment/blood/blood_spray.tscn")
export var spray_ammount: int = 16
export var spray_velocity: float = 80
export var autoplay: bool = false
func _ready() -> void:
if autoplay:
emitting = true
yield(get_tree(), "idle_frame")
for i in spray_ammount:
var spray = BloodSpray.instance()
spray.global_position = global_position