0 votes

E 0:00:00.538 get_node: (Node not found: "tileContain/GridContainer" (relative to "/root/Main Scene/Node2D").)
<C++ Error> Condition "!node" is true. Returned: __null
<C++ Source> scene/main/node.cpp:1371 @ get_node()
Main Scene.gd:16 @ _ready()

tileContainer is loaded on Inspector
extends Node2D

var scene = preload("res://tile.tscn")

Declare member variables here. Examples:

var a = 2

var b = "text"

Called when the node enters the scene tree for the first time.

func _ready():

for i in 729:
    var scene_instance=scene.instance()
Godot version 3.3.2
in Engine by (54 points)

1 Answer

0 votes

It doesn't matter if tileContainer is loaded in the inspector. The error means that your node path is incorrect. There is no tileContain/GridContainer child of Node2D. Check your spelling.

by (7,954 points)
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.