0 votes

Hi all

I have the following RedBomb scene:

--- Tickable

This RedBomb scene is used in another World scene. The RedBomb node has a script on it which exports a NodePath:
export(NodePath) var trigger_on_interact = null

When I set this NodePath to Tickable via Editor Inspector, it is set to "Tickable" in the RedBomb.tscn.

When I run the game and print trigger_on_interact, I get ../Scenario/RedBomb/Tickable, which is wrong, and a get_node(trigger_on_interact) returns null.

The World scene looks as follows:

  --- Scenario
        --- SpecificScenario
              --- RedBomb

I don't understand where ../Scenario/RedBomb/Tickable is coming from. Can anybody help?

Godot version v3.2.3.stable.official
in Engine by (57 points)

1 Answer

0 votes
Best answer

Answering my own question:
Removing RedBomb from SpecificScenario and re-adding it fixed the NodePath (note that resetting the NodePath in the SpecificScenario scene did not help).

by (57 points)
selected by
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 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 webmaster@godotengine.org with your username.