User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15

Thread: Have a break - have a pause-object?

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Location
    Germany
    Posts
    236
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Have a break - have a pause-object?

    Is there a way to pause an application with an in-built function or an object/extension?

  2. #2
    Clicker Multimedia Fusion 2
    BrandonC's Avatar
    Join Date
    Jun 2006
    Location
    PA, USA
    Posts
    931
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Have a break - have a pause-object?

    I recall there being extensions to do this in MMF 1.5, however the best way, and this is exactly how I would do it would be:
    Thanks to sub-groups in MMF2. Put everything in 1 large group (even groups) and then have a pause event that just activates and deactivates this group. All the events, even special effect particles, will stop moving and start back up when the group stops and starts.

    In addition, this gives you a higher flexability as far as pausing goes, because it allows you to make things like pause menus with options. Something you cant make if you pause the entire game, because this would make the menu screens pause aswell. <img src="/center/images/graemlins/wink.gif" alt="" />

    Hope this helps!

  3. #3
    No Products Registered

    Join Date
    Jul 2006
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Have a break - have a pause-object?

    a other way is to use a sub app with modal checked in window style, lets say when press esc the game should pause, then show the sub app, the main frame will be completly frozen until you exit the sub app

  4. #4
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Have a break - have a pause-object?

    Yeah Subapps is IMHO the best way to do it.
    That way you don't have to fiddle with disabling and reenabling events and worry about things getting out of sync or about the fact that you can't pause objects that are shot and stuff like that.

  5. #5
    No Products Registered

    Join Date
    Jun 2006
    Posts
    253
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Have a break - have a pause-object?

    press CTRL+P and the application will be paused.

  6. #6
    No Products Registered

    Join Date
    Jun 2006
    Posts
    1,630
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Have a break - have a pause-object?

    The best way I've found is tie nearly everything that moves with a "freeze" counter.. all the events related must have a "If counter=0".. so when the counter=1 (you press Esc or something), the move won't occur

  7. #7
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export ModulePatch Maker
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)
    Renatos's Avatar
    Join Date
    Jun 2006
    Location
    São Paulo, SP - Brasil
    Posts
    593
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Have a break - have a pause-object?

    The problem I have had with the sub-app as pause using modal is that in a scrolling game, I can never get the sub app to center the screen, it pauses the game alright but it stays in the top corner of the whole window and not the visible frame. Is there a way to fix this?

  8. #8
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Posts
    227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Have a break - have a pause-object?

    Use the window control object on the sub-app and at start of frame:
    Window Control Object:-
    Set Position X= (Screen X size( "Window Control" )/2)-(ClientWidth( "Window Control" )/2)

    Set Position Y= (Screen Y size( "Window Control" )/2)-(ClientHeight( "Window Control" )/2)

    That should center the window in the center of the screen as long as its a popup window!

  9. #9
    No Products Registered

    Join Date
    Jul 2006
    Location
    Germany
    Posts
    236
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Have a break - have a pause-object?

    Great Scott!
    Benjamin is right! I Didn't know MMF2 had that feature...though the pause-window is not what I would call 'good looking'.
    I think I'll try the sub-app.

    Thanks to all of you!!!

  10. #10
    No Products Registered

    Join Date
    Jul 2006
    Location
    Germany
    Posts
    236
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Have a break - have a pause-object?

    Hm...not bad. But there should be a way to pause/continue the game in the event-editor.
    To Jeff or Yves: Would it be possible to ad this?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Time X object to pause/unpause
    By AndyBazooka in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 30th December 2013, 02:08 AM
  2. Replies: 10
    Last Post: 15th October 2012, 04:33 PM
  3. joypad object and pause function
    By markofthedog in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 18th July 2012, 06:02 AM
  4. line break
    By arfa in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 29th February 2012, 04:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •