Game Development Community

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:

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.


#1
06/15/2005 (12:31 am)
There's been a few threads similar to this asking for 'automatic' functionality and whilst I tend to agree, what's good for one, is bad for another. In this case, I'd definately agree.

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. :)

Quote:We already get enough errors and warnings in the console
I don't see any errors or warnings in the console from the stock SDK.

- Melv.