bloodstain improvements. work during pause for player, vastly more efficient

This commit is contained in:
Haze Weathers 2023-09-15 22:16:24 -04:00
parent 686b57f798
commit 6f6c5d06e1
9 changed files with 59 additions and 18 deletions

View file

@ -10,7 +10,7 @@ export var spray_velocity: float = 80
func _ready() -> void:
for i in spray_ammount:
var spray: RigidBody2D = BloodSpray.instance()
var spray = BloodSpray.instance()
spray.global_position = global_position
spray.linear_velocity = Vector2(spray_velocity, 0.0).rotated(randf() * TAU)
spray.velocity = Vector2(randf() * spray_velocity, 0.0).rotated(randf() * TAU)
get_parent().add_child(spray)