Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | angelotego |
At the moment where i instance thebullet,it doesn’t fit in the Position2D.
It shoots but the shoots are not in the same place of the character ,how do i fix it?
I try with global_position.
code shoot:
func shoot():
canshot = false
state_machine.travel(“shoot”)
var newshoot = balaR.instance()
newshoot.position=$Position2D.position
print(newshoot.position)
get_parent().add_child(newshoot)
$Timer.start(0.5)