fix a something idk
This commit is contained in:
parent
45a8e21c04
commit
2228a84086
4 changed files with 8 additions and 4 deletions
|
@ -67,7 +67,7 @@ func spawn(item: WaveEnemy):
|
|||
var portal_effect = portal.instantiate()
|
||||
portal_effect.global_position = spawn_loc
|
||||
portal_effect.sprite_frames = item.portal_texture
|
||||
$/root/Node2D.add_child(portal_effect)
|
||||
$/root/Node2D.add_child.call_deferred(portal_effect)
|
||||
await get_tree().create_timer((item.portal_texture.get_frame_count("default") / 2) * (1 / item.portal_texture.get_animation_speed("default"))).timeout
|
||||
var node = item.enemy.instantiate()
|
||||
node.global_position = spawn_loc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue