GarageGames / Torque2D

MIT Licensed Open Source version of Torque 2D game engine from GarageGames
MIT License
1.67k stars 1.56k forks source link

CompositeSprites Animates Continue When Scene Is Paused #369

Closed greenfire27 closed 8 years ago

greenfire27 commented 8 years ago

If you pause a scene with normal sprites that are animating, the animation freezes as you'd expect. If you pause the scene with animated composite sprites, then the animations continues. This is easy to test in the toy box. Open the AudioToy and pause the scene.

SandboxScene.setScenePause(true);

The animations will freeze. Now open the CompoundObjectsToy and click around to throw in a few objects. Now try pausing the scene again. If any of the objects are moving, they'll freeze in place, but their animations will continue.

This issue hits my game hard, where I have multiple scenes with lot's of composite sprites. When I hide one scene I pause it so it's not hogging resources, but with this bug, it still is using some juice.

greenfire27 commented 8 years ago

Fixed with pull request #375.