hyperandroid / CAAT

Canvas Advanced Animation Toolkit
hyperandroid.github.com/CAAT
MIT License
727 stars 117 forks source link

Behavior of Button Actor with pause scene #94

Closed radzikowski closed 11 years ago

radzikowski commented 11 years ago

Hi

I test behavior of Button Actor (setAsButton) with scene pause. I created a button "pause" with behavior normal and press image index change. It's any way to render button change on paused scene?

hyperandroid commented 11 years ago

I see what you mean, but right now, i think there's no solution. What i could add is a director.setPaused method, which will equivalent to the actual scene.setPaused method. That is, the Director animation loop is being performed, but nothing in the scene is being animated/drawn. This is the effect of lowering system resources consumption to the bare minimum (opposed to stop everything which is achieved with CAAT.endLoop()). Then, change Scene.setPaused method, to stop feeding scene's virtual timeline, but redrawing the same frame. This is the effect of having a freezed scene.

Is this the use case you're looking for ? Is this a killer feature for your current development ?

Best,

radzikowski commented 11 years ago

I was looking for such a solution, but in my opinion it is not so much needed functionality. The more I thought about the option to pause actorContainer as container of the actors.

hyperandroid commented 11 years ago

Will leave it as is then. Thanks.