Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | aruberg |
The code below results in a node (newBrick) that does not display when running the game:
extends Node
export var Brick : PackedScene
func _ready():
var newBrick = Brick.instance()
add_child(newBrick)
newBrick.position = Vector2(400,400)
If the code in “ready()” is placed in “process” it does work. How can I make it work properly in ready.