Why does this code return 0? How do I get it to return 1?
[code]
local spawnObjects = {OBJECT1 = {image = “images/yellowRect.png”, color = “YELLOW”}};
numSpawnObjects = table.getn(spawnObjects);
print(numSpawnObjects);
[/code] [import]uid: 39238 topic_id: 7053 reply_id: 307053[/import]