When you run your "MemoryGame" the root /
will be the root of the current scene which is the memory game's root, and when you add the MemoryGame scene inside your platformer, the root will be the platformer's root. In that case, using an absolute path ('/root/MemoryGame'
) won't work, use a relative path
get_node('..').chooseCard(self)
for more see scene tree and node path
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…