I have the object I am spawning on a separate layer from what I read that is correct, but I am having errors that the key is not in the list...double checked names and everything. Can anyone maybe see something I do not?
here is the error KeyError: "CList[key]: ''breadcrumb'' key not in list" I assume it thinks there is no object with that name
and the code I used below
cont = bge.logic.getCurrentController() own = cont.owner scene = bge.logic.getCurrentScene() node = scene.objects['breadcrumb'] life_time = 5 #scene.addObject(object,loc,duration) *duration is in frames if own['nodeSpawnTimer'] >= 5 and own['nodeCount'] <= 20: scene.addObject(node,own.worldPosition, life_time) own['nodeCount'] += 1 own['nodeSpawnTimer'] = 0