Suspend and resume using director class question.

Hi,

I am trying to find a way to use suspend and resume within my game but cant figure out how when using the director class.

Has anyone got any experience with this?

Cheers

Mike R [import]uid: 9950 topic_id: 7584 reply_id: 307584[/import]

SO does anyone have any ideas on what is needed for suspend and resume to work with the director class?

Cheers

Mike R [import]uid: 9950 topic_id: 7584 reply_id: 32804[/import]

Hi Mike,

I’m a bit confused what you’re asking here. Are you asking about the device suspend and resume using device events and listeners, i.e. when the user receives a call or powers off the device? Or, are you talking about a custom “pause” feature coded into your app?

In both cases, Director is a shell module that works along with main.lua… so you can build in suspend and resume into the main Lua file and it should work just fine.

Now, if you’re talking about “pausing” Director mid-transition (i.e. the scene is flipping from one to the next and you want to pause it mid-flip for whatever reason), that’s a whole new can of worms, and I would say the answer is: yes, it’s possible, but no, it’s not already built in. You’d have to modify Director to suit your custom needs for this.

Brent
[import]uid: 9747 topic_id: 7584 reply_id: 33110[/import]

Hi Brent,

I was talking about device suspend and resume. However the recent update fixes it all and works exactly as expected now.

I assumed suspend and resume was already built into corona but apparently it had issues.

So what I thought was an issue with director class was actually a corona issue that has now been solved.

Thanks

Mike [import]uid: 9950 topic_id: 7584 reply_id: 33233[/import]