- Edited
New to scripting in C#, need to instance using a 2d array but don't know how, then I was wondering how to change the transform once instanced, since PackedScene loads as a node, not spatial, thus not allowing me to edit the transform in code.
This is the really basic code I have so far.
public class Map : Spatial
{
private PackedScene _tile = GD.Load<PackedScene>("res://Tile.tscn");
private int _numRow = 10;
private int _numCol = 10;
public override void _Ready()
{
Node tileInstance = _tile.Instance();
AddChild(tileInstance);
}