This commit is contained in:
ultrablob 2024-04-30 15:37:00 -04:00
parent f7d034147d
commit 57e3151019
15 changed files with 92 additions and 46 deletions

View file

@ -18,8 +18,12 @@ func eject():
var riangle = spawner.get_child(0)
if riangle == null:
return
riangle.apply_central_impulse(Vector2(1000, randi_range(-100, 100)).rotated(spawner.rotation))
riangle.freeze = false
riangle.apply_central_impulse(Vector2(500, randi_range(-100, 100)).rotated(spawner.rotation))
await get_tree().create_timer(0.05).timeout
if riangle == null:
return
riangle.reparent($/root/Node2D)
await get_tree().create_timer(0.1).timeout