The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes


So, I'm new to Godot and made my first two projects. The first one is a platformer game the 2nd one is a Memory Card Game. Both games work fine when I run them separately.
Yesterday I got an idea to put the Memory Card Game into the Platformer Game, so when I interact with some NPCs or enemies the Memory Game will launch as a mini-game. But...

When I try to run my Platformer Game with the Memory Game inside and click a card I get an error: "get_node: Node not found: /root/MemoryGame" I think the problem is this code in my "": "get_node('/root/MemoryGame').chooseCard(self)" .

Here is a short video to show you the problem:

So it seems like the main game which is the platformer game cannot find the "MemoryGame" file. I even tried to autoload the MemoryGame file but it didn't help.

Godot version 3.2
in Engine by (19 points)

1 Answer

+1 vote
Best answer

Your absolute path is wrong. Since you've added the card game as a child of another scene, its path has changed. Its new path is "/root/Level1/CanvasLayer/MemoryGame".

by (8,550 points)
selected by

Thanks, that helped!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.