Posted By
|
Message
|
eliris
Registered 14/05/2010
Points 1708
|
8th September, 2011 at 13:48:03 -
Just a question, how do I make a custom "PAUSE" menu/screen while all of the main game is pausing?
thanks alot tdc
n/a
|
Sketchy Cornwall UK
Registered 06/11/2004
Points 1971
|
8th September, 2011 at 15:33:53 -
I use a subapp as a pause screen. If you set it to "modal" it pauses all activity in the main game window, so you can pause/unpause the game by showing/hiding the subapp.
eg. https://skydrive.live.com/self.aspx/Public/Pause.mfa?cid=b1e7ee094271bbda&sc=documents
Edited by Sketchy
n/a
|
eliris
Registered 14/05/2010
Points 1708
|
9th September, 2011 at 14:32:55 -
Thanks much, going to try it
n/a
|
The Chris Street Administrator
Unspeakably Lazy Admin
Registered 14/05/2002
Points 48488
|
9th September, 2011 at 17:13:04 -
Another way to do it is to group all the game events into one big group. Create a layer with the Pause menu and ensure it's on top of all the other layers, and with the Layer object, make it invisible during gameplay and visible when the Pause trigger is activated. Also, disable the Group with all the game events in, and enable it when you need to.
n/a
|
eliris
Registered 14/05/2010
Points 1708
|
9th September, 2011 at 18:23:22 -
Originally Posted by The Chris Street Another way to do it is to group all the game events into one big group. Create a layer with the Pause menu and ensure it's on top of all the other layers, and with the Layer object, make it invisible during gameplay and visible when the Pause trigger is activated. Also, disable the Group with all the game events in, and enable it when you need to.
I used to o that before but thanks =]
n/a
|
Windybeard Games
Registered 14/04/2005
Points 219
|
9th September, 2011 at 19:08:40 -
Originally Posted by SketchyI use a subapp as a pause screen. If you set it to "modal" it pauses all activity in the main game window, so you can pause/unpause the game by showing/hiding the subapp.
eg. https://skydrive.live.com/self.aspx/Public/Pause.mfa?cid=b1e7ee094271bbda&sc=documents
Problem with this is me and a few others have found a fairly serious memory leak with the sub app object. After creating and destorying the sub app (depending on the size of your game) it will consume 1-3MB of memory. Problem has been posted to CT.
I suggest if anyone has a heavy reliance on Sub App then check your project. Open and close Sub app a few times and see if your memory usage goes up each time.
n/a
|
Alonso Martin
Registered 29/12/2010
Points 294
|
9th September, 2011 at 19:33:35 -
In my case, the subapp memory leak was caused by extensions that loaded data or images from external files. Did you get a working example of your problem, Antworx? If you did, remind Yves about it. I posted another example leak with the Image Manipulator object but it was ignored.
www.hfalicia.com
www.alonsomartin.mx
|
Windybeard Games
Registered 14/04/2005
Points 219
|
10th September, 2011 at 00:05:52 -
I couldn't send my entire project to them. and i couldnt make another like mine to replicate it. They are aware of the issue i hope and maybe they will fix it. Sadly i dropped the Sub App from my game cause of it.
Did you manage a work around yet?
n/a
|
Alonso Martin
Registered 29/12/2010
Points 294
|
10th September, 2011 at 00:27:16 -
For the Image Manipulator, no. Still, they're not huge memory leaks now. And I've added a game-option for the player to turn on or off if they want a blurred bg image. Hope you got your game to work well.
www.hfalicia.com
www.alonsomartin.mx
|
Sketchy Cornwall UK
Registered 06/11/2004
Points 1971
|
10th September, 2011 at 01:50:51 -
Originally Posted by Antworx
Problem with this is me and a few others have found a fairly serious memory leak with the sub app object. After creating and destorying the sub app (depending on the size of your game) it will consume 1-3MB of memory. Problem has been posted to CT.
I suggest if anyone has a heavy reliance on Sub App then check your project. Open and close Sub app a few times and see if your memory usage goes up each time.
That's not very good. Let's hope they fix it then. And thanks for mentioning it.
n/a
|
nim
Registered 17/05/2002
Points 7234
|
10th September, 2011 at 16:18:36 -
Originally Posted by Antworx
Problem with this is me and a few others have found a fairly serious memory leak with the sub app object. After creating and destorying the sub app (depending on the size of your game) it will consume 1-3MB of memory. Problem has been posted to CT.
I suggest if anyone has a heavy reliance on Sub App then check your project. Open and close Sub app a few times and see if your memory usage goes up each time.
I don't understand what you're saying here. 1-3Mb is.. not very much. Do you mean, every time the app is paused using subapp it adds 1-3Mb that's irretrievable until the whole app closes?? That would be more serious! I use a subapp to pause my game but I don't create/destroy it. I don't even know how or why you'd do that.
Anyway, I hadn't noticed the memory leak before. Thanks for the info!
Edited by nim
//
|
siven I EAT ROCKS
Registered 03/11/2008
Points 604
|
23rd September, 2011 at 18:47:39 -
Never knew that would cause a memory leak. are there any other objects that cause memory leaks that we know of or just the subapp one?
[Game design makes my brain feel like its gonna explode.]
|
Chris Burrows
Registered 14/09/2002
Points 2396
|
24th September, 2011 at 10:45:26 -
Character Image object when used in HWA is the worst. I've contacted Ross who made it a few times but he didn't respond. I would pay $100 for a HWA update easy. Anybody else want to chuck in?
n/a
|
|
|