Parser Error: Unexpected token: Identifier:add_child

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Deikun011

no entiendo porque me sale ese error, aquí esta:

var E = ejemplo.instance()
add_child()

por favor solucionen

:bust_in_silhouette: Reply From: clemens.tolboom

You have to add something :slight_smile:

func do_something():
    var E = ejemplo.instance()
    add_child(E)