Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | deezy |
hello. i have issue with position2d i think.
to get the position of my fireball, i must take it far behind my player to make it come out right inn front of the character. does it the position in the scene it was made in make it differ in other scenes when instanced?
if Input.is_action_just_pressed("ui_focus_next"):
var fireball = FIREBALL.instance()
get_parent().add_child(fireball)
fireball.position = $Position2D.global_position