Reduce the explosion animation time to 0.5

This commit is contained in:
Moe Poi ~ 2023-12-06 11:57:28 +07:00
parent d6d1c66eb6
commit 8fa547be1c

View file

@ -29,7 +29,7 @@ func _on_Bullet_body_entered(body):
$AnimatedSprite2D.play("default")
for enemy in enemies:
enemy.hit(damage)
await get_tree().create_timer(1).timeout
await get_tree().create_timer(0.5).timeout
elif slow_effect:
body.get_parent().hit(damage)
body.get_parent().slow()