This commit is contained in:
Ultrablob 2024-05-06 10:05:42 -04:00
parent 100572749a
commit 11a54f2b94
22 changed files with 304 additions and 532 deletions

View file

@ -14,7 +14,7 @@ func destroy():
queue_free()
func _physics_process(delta):
apply_central_force((global_position - player.global_position).normalized() * -200)
apply_central_force((global_position - player.global_position).normalized() * -100)
$ExplosionRadius.visible = false
for body in $Explosion.get_overlapping_bodies():
@ -42,4 +42,6 @@ func _on_explosion_body_entered(body):
#print(body.name)
if body.name == "Player":
$Sprite2D.play("default")
$ExplosionRadius.blink()
get_tree().create_tween().tween_property($ExplosionRadius/Timer, "wait_time", 0.05, 1.5).set_trans(Tween.TRANS_CUBIC).set_ease(Tween.EASE_OUT)
$ExplosionRadius.visible = true