User Tag List

Results 1 to 3 of 3

Thread: Switching Focus and Pause Routine

  1. #1
    No Products Registered

    Join Date
    Dec 2009
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Switching Focus and Pause Routine

    Greetings,

    I working on a game in MMF2 Dev and one of things that I would like to implement in the game is if the game looses focus (ie: alt-tab or the windows key is pressed or another app launches) for the game to automatically pause. I am having one heck of a time trying to get this to work.

    Any help or sample code would be greatly appreciated.

    Thank you in advance.

    Adam

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Switching Focus and Pause Routine

    Add the Window Control Object to your frame. Add an event:

    --Window has focus (negate it)
    --Only one action when event loops
    --->Pause your app

    Stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  3. #3
    No Products Registered

    Join Date
    Dec 2009
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Switching Focus and Pause Routine

    Stephen,

    Thank you for the quick reply! You rock!

    Adam

Similar Threads

  1. CT: Can you add Apples Reachability routine?
    By JoKa in forum iOS Export Module Version 2.0
    Replies: 12
    Last Post: 3rd March 2013, 08:28 AM
  2. Focus, pause game and text edit box.
    By pit73 in forum HTML5 Export Module 2.5
    Replies: 3
    Last Post: 24th January 2013, 02:52 PM
  3. Replies: 10
    Last Post: 15th October 2012, 04:33 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
  •