Adding a child node at a scpecific position

Godot Version

v4.4.stable.steam [4c311cbee]

Question

how do I create a child node in a specific position other than 0,0?

		release.emit()
		var e1 = ob1.instantiate()
		add_child(e1)
		e1.position = Vector2($spawner.global_position.x, $spawner.global_position.y)

That would be how to do it!

What happens versus what do you expect to happen?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.