forked from team-sg/hero-mark-2
bloodstain improvements. work during pause for player, vastly more efficient
This commit is contained in:
parent
686b57f798
commit
6f6c5d06e1
9 changed files with 59 additions and 18 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue