Like the title suggest, i want to summon a child node, then change its position to kinda above/below where i summoned it. Heres the code i wrote for it:
extends StaticBody2D
func _on_Ball_splitto2():
var ypos = self.position.y
var xpos = self.position.x # Meant to be used for the location of the children
var parent = get_parent()
var tilenormal = load("res://tiles/TileNormal.tscn").instance() # The tile im going to call as a child
parent.add_child(tilenormal) # Summons the child node under "LevelManager" which is how i control all my summoned blocks, will add one more child afterwards
queue_free() # Deletes current node, since it has been hit
currently i can add the child node just fine, but it summons it at the location of the LevelManager, being currently the origion point. How do i change the childs coordinates to be kinda above/under the node im calling it from?