DaVikingCode / Citrus-Engine

Modern AS3 Game Engine
http://citrusengine.com/
Other
549 stars 231 forks source link

handleStageDeactivated and _playing #261

Open gsynuh opened 9 years ago

gsynuh commented 9 years ago

@alamboley , Why does handleStageDeactivated check if _playing is true to stop starling again?

https://github.com/DaVikingCode/Citrus-Engine/blob/master/src/citrus/core/starling/StarlingCitrusEngine.as#L322

A good point raised on the forums is that if you manually set playing to false (that only pauses the juggler) , then stage is deactivated, starling will not stop because of that check. but then its force started again on stage activation, I don't know if it makes sense. It might in a special case but maybe not as a default behavior for CE.

alamboley commented 9 years ago

Why stop starling "again"? Indeed, the manual case isn't considered there... I should check the latest Starling doc to see if that still make sense or not.