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
|
@ -277,9 +277,11 @@ func _on_Dead_state_entered() -> void:
|
|||
particles.emitting = true
|
||||
get_parent().add_child(particles)
|
||||
for i in 16:
|
||||
var spray: RigidBody2D = BloodSpray.instance()
|
||||
spray.global_position = global_position
|
||||
spray.linear_velocity = Vector2(80.0, 0.0).rotated(randf() * TAU)
|
||||
var spray = BloodSpray.instance()
|
||||
spray.pause_mode = PAUSE_MODE_PROCESS
|
||||
Physics2DServer.set_active(true)
|
||||
spray.global_position = death_splatter_position.global_position
|
||||
spray.velocity = Vector2(randf() * 80.0, 0.0).rotated(randf() * TAU)
|
||||
get_parent().add_child(spray)
|
||||
else:
|
||||
skip_blood = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue