Particles and setScenePause()
by Shaz · in Torque Game Builder · 09/04/2008 (11:18 pm) · 5 replies
Is there any way (other than delving into the engine code) to make particle effects continue to update when the scene is paused? I don't want them to stop dead in their tracks when everything else does.
About the author
#2
09/09/2008 (2:29 pm)
Interesting idea. I'll experiment a bit. Thanks.
#3
10/17/2008 (10:27 am)
Yup, that solution should work. Let me know if you have trouble creating and rendering a new scenegraph. I can probably help. One problem you might see for instance is that layering scenegraphs will intercept mouse input so you have to pass the click onto the back layer... just a heads up.. it's an easy solution by the way in most cases.
#4
I needed to be able to pause MOST of the scene/characters but let some continue moving, for the tutorial. So I ended up ditching scenepause (pausescene?) altogether and setting a flag on every moveable thing to say whether they were paused or not - fairly simple as there were only two classes. A nice, but unplanned side effect, is that particle effects and animations (explosions) did just what I wanted them to up here :)
When I was experimenting with this, I couldn't actually figure out how to add a new scenegraph to the level via the builder. If you could take the time to explain that (did I just miss something from the Create tab?), and how I'd go about "passing the click onto the back layer", that may come in handy for my next project.
Thanks for the help :)
10/17/2008 (2:23 pm)
I actually got around this a different way.I needed to be able to pause MOST of the scene/characters but let some continue moving, for the tutorial. So I ended up ditching scenepause (pausescene?) altogether and setting a flag on every moveable thing to say whether they were paused or not - fairly simple as there were only two classes. A nice, but unplanned side effect, is that particle effects and animations (explosions) did just what I wanted them to up here :)
When I was experimenting with this, I couldn't actually figure out how to add a new scenegraph to the level via the builder. If you could take the time to explain that (did I just miss something from the Create tab?), and how I'd go about "passing the click onto the back layer", that may come in handy for my next project.
Thanks for the help :)
#5
10/18/2008 (7:07 pm)
You can't add create/remove scenegraph's in the editor. You would probably need to add a second t2dSceneWindow to your playGui.
Torque Owner Ehrlich