![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | smezzy |
I just want to instance a flash particle behind my player, I tried searching but no success
this is the code im using to spawn it but it aways spawn on top of my player
func shoot(event):
if Input.is_mouse_button_pressed(BUTTON_LEFT):
var bulletanim = BULLET.instance()
get_parent().add_child(bulletanim)
bulletanim.position = spawn_position.global_position
bulletanim.look_at(get_global_mouse_position())