![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Lucksinia |
So, I have a preloaded scene of my muzzle flash for a gun into a gun scene. and playing it through:
func create_muzzle_flash():
var flash_instance = flash.instantiate()
flash_instance.position = bullet_point.get_global_position()
flash_instance.rotation_degrees = bullet_point.rotation_degrees
get_tree().get_root().add_child(flash_instance)
await flash_instance.animation_changed
flash_instance.queue_free()
But it’s a) not rotating correctly and b) after animation finished it litters ground with the last frame of said animation and not deletes it.
What i’m talking about:
(please, someone, help, and % is spaces in browser btw.)
And yes, I need it as a scene, for PointLight2D from the muzzle flash.