AddToScene and removeFromScene
by Tom Spilman · in Torque Game Builder · 06/14/2005 (10:47 am) · 1 replies
Simple suggestion.... have addToScene() automatically call removeFromScene() instead of getting a warning:
We already get enough errors and warnings in the console. We shouldn't get one when the users intention... to move the object from one scene graph to another... is clearly understood.
fxSceneGraph2D::addToScene - Object '1250' is already in a SceneGraph (1250)!
We already get enough errors and warnings in the console. We shouldn't get one when the users intention... to move the object from one scene graph to another... is clearly understood.
About the author
Tom is a programmer and co-owner of Sickhead Games, LLC.
Associate Melv May
After the last debate (I believe it was related to remounting objects), I put down in my notes to have a variable which essentially puts T2D into advanced mode. I'm going to try to get this done for the next update. There's dozens of these kind of catch-net checks that can be skipped in 'advanced mode' so hopefully, this would suit all camps. :)
I don't see any errors or warnings in the console from the stock SDK.
- Melv.