Godot Version
v4.2.2
Question
I am following a tutorial on how to make a grid system, and it says to assign an already created scene to the tile_scene variable in the inspector panel, but I cannot find anywhere to do that. Here is the script:
extends Node2D
export(PackedScene) var tile_scene
export(int) var grid_width = 10
export(int) var grid_height = 10
export(int) var tile_size = 64
func _ready():
for x in range(grid_width):
for y in range(grid_height):
var tile = tile_scene.instance()
tile.position = Vector2(x * tile_size, y * tile_size)
add_child(tile)