Hi guys, I am facing a difficulty with removing an object from a group.
I don’t want the object to be deleted from memory and display but rather just excluded
from the current group. Unfortunately, the way I am doing it is destroying the object
itself.
Here is my code:
[lua] object.parent:remove( object ) [/lua]
I also tried with:
[lua] objectGroup:remove(object) [/lua]
What is the proper way to remove the parent of an object without
destroying the object itself?