shield sprite
This commit is contained in:
@@ -114,6 +114,7 @@ func take_hit(_damage, knockback_vector, knockback_strength = 1):
|
||||
move_state = MoveState.Knockback;
|
||||
velocity = knockback_vector;
|
||||
knockback_timer.start(0.2 * knockback_strength);
|
||||
$Shield.visible = false;
|
||||
else:
|
||||
reboot();
|
||||
|
||||
@@ -124,4 +125,5 @@ func reboot():
|
||||
velocity = Vector2.ZERO;
|
||||
move_state = MoveState.Still;
|
||||
shield_active = true;
|
||||
$Shield.visible = true;
|
||||
# hand.discard_all();
|
||||
|
||||
Reference in New Issue
Block a user