Does anyone know if there are any known issues with the Clone Object command? It's fundimental to my current project, but I'm getting an odd error with it.
My error message is the good old "Object already exists at line blah blah" error, but to debug and find out what object I'm trying to create twice I added a bit of code. Anyway, I have this ...
if object exist(ObjectNum)
do
text 1,1,str$(objectnum)
loop
endif
Clone object 1000, ObjectNum
As you can see from that, if the object at ObjectNum actually exists, there's no way the program should be able to crash. It should enter the do loop before it tries to clone the object and display the number of the object it was about to try cloning.
But it doesnt. It skips passed the object exist() part and then runs the clone object line and tells me the object already exists.
Can't figure this one out. Is there a known bug?
EDIT:
To make it a bit clearer:
CLONE OBJECT 1000,ObjectNum
The clone object command clones the source object (1000) and makes a new object at position ObjectNum. As you can see in my code snippet, ObjectNum can't exist before the clone object command is run. It's not possible. So the error makes no sense to me!
Insiiiiiiiiiiiiiiiiiiiiiiiide!