Game Development Community

Help with "Unable to find object:" error

by Dave Rushton · in General Discussion · 06/16/2009 (4:22 pm) · 3 replies

Every time I try to spawn an object I get the message "game/behaviors/spawnArea.cs (91): Unable to find object: '' attempting to call function... The function name varies by the function trying to be called. ANyone have an idea on this?

#1
06/16/2009 (4:37 pm)
i would go look at whatever line 91 of spawnArea.cs is.
#2
06/16/2009 (5:44 pm)
This is what line 91 says: %this.BlueObject.setPositionX(283); It happens on all function calls in SpawnArea.cs where I am trying to clone, spawn, or in any way affect the object. The object is listed in the template in the same file and is spelled correctly and is the same case. There are 5 different objects that I am trying to spawn and I get the same message from any of them.
#3
06/16/2009 (5:50 pm)
Jugding by that word "behaviors" in the filepath I would say you were using TGB, correct? Unfortunately I've never used TGB. You may find better help in the TGB sub-forums.

But I would definitely want to check out line 91 of spawnArea.cs. You'll need to verify that it's passing/calling the correct namespace and/or variables.

EDIT: note to self: refresh these pages before posting :D Sorry for the rundundant post.