Fixed healing gfx effect

This commit is contained in:
Paul Norberger
2020-04-19 14:20:35 +02:00
parent 8af0bebad4
commit 9df42a3245
3 changed files with 11 additions and 15 deletions

View File

@@ -18,8 +18,6 @@ onready var debug_label := $DebugLabel
onready var animation_state := $AnimationStates
# Variables for sound selection
onready var walk_sounds = $Sounds/Walk
onready var walk_sound_timer = $Sounds/WalkSoundTimer
var _rng = RandomNumberGenerator.new()
var is_playing_sound = false
@@ -65,8 +63,7 @@ func _physics_process(delta):
moveState.HIT:
movement_hit()
print(heal_per_second)
$"Effects/HealEffect".emitting = heal_per_second > 0.0
$"Effects/HealEffect".emitting = heal_per_second > 0
move()
# IMPORTANT: If you are using move_and_slide don't multiply by delta