User Tag List

Results 1 to 10 of 10

Thread: So Back Button - what's going on?

  1. #1
    Clicker Multimedia Fusion 2Android Export ModuleXNA Export Module
    Cyberbeard's Avatar
    Join Date
    Aug 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    So Back Button - what's going on?

    Hey,

    I have the same back button issue that everyone seems to complain about.

    Is there a fix for this on the way?

    I've bought a Win 8 Phone and the XNA exporter specifically for releasing MMF2 games on the app market, so a 'bug' like this one is really annoying.

    • Is there a real, genuine workaround that allows me to publish on WP8?
    • If not, is there a fix on the way any time soon?

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    I'll work on it before the end of the week.

  3. #3
    Clicker Multimedia Fusion 2Android Export ModuleXNA Export Module
    Cyberbeard's Avatar
    Join Date
    Aug 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Francois View Post
    I'll work on it before the end of the week.
    Much obliged!

    Thanks, Francois.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Just a thing : what I will investigate is the Quit application action that does not work.
    You have to detect manually when the first press on back occurs (or when the user pressed back enough time to come back to the first position), and decide to quit the application your self. I cant do it myself as I do not know at all what you do in your application.
    -> Use the XNA object to detect a press on BACK
    -> When it occurs, simply do a End Application.
    Can you test and tell me if it works?

  5. #5
    Clicker Multimedia Fusion 2Android Export ModuleXNA Export Module
    Cyberbeard's Avatar
    Join Date
    Aug 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well basically I have several frames; one for each level and one for each selection from the menu (options, credits, level selection, etc.).

    In every frame except for the menu frame, [Press Windows Key Back] will take you to the previous frame, whereas if you are in the menu frame then it will end the application.

    Right now, the problem is that doing this in any frame will just end the application.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Sep 2012
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Correct. It's the going back to a menu behavior, not quitting, that is more critical.

    Cyberbeard, the timer workaround discussed in the other back button thread worked for me - but it is still touchy.

  7. #7
    Clicker Multimedia Fusion 2 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export ModuleXNA Export Module
    colej_uk's Avatar
    Join Date
    Nov 2006
    Location
    UK
    Posts
    739
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Could it be that the button press is triggering while held down, not when pressed? I know this is the case with a lot of exporter input conditions, where an 'is x button pressed' will act the same as a 'repeat while key is pressed' command as opposed to a 'upon key press' for example.

    So it could be that the button being pressed is causing the app to go back to the main menu or whatever, then it immediately quits because the button is still down, triggering your quit event.

    Take out the 'end application' event in your main menu and test it, if it doesn't quit then this is what's happening. You can code around this by having a check for the button not being pressed before 'activating' the button again:

    -Create a value with default of 1 called 'buttonpress'
    -Create an event 'if button *isn't* pressed' then set 'buttonpress' to 0.
    -Add 'buttonpress' == 0 as a condition on your button press event.

    With this method you can avoid button press events triggering across multiple frames.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    I was about to make the same suggestion : maybe the back button down condition of the first frame is triggered when you come back from a later frame.
    The value cole is talking about should be global of course.

  9. #9
    Clicker Multimedia Fusion 2Android Export ModuleXNA Export Module
    Cyberbeard's Avatar
    Join Date
    Aug 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This solution worked wonderfully well when I made sure to set the global 'buttonpress' value to 1 at the 'Start of each Frame'.

    Thank you both.

  10. #10
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    OK goog news. I will implement this in the XNA object itself so you wont need to do it yourself.

Similar Threads

  1. Back button?
    By Outcast in forum Android Export Module Version 2.0
    Replies: 11
    Last Post: 13th November 2013, 10:09 PM
  2. Back Button Behavior
    By macca02 in forum Android Export Module Version 2.0
    Replies: 5
    Last Post: 3rd November 2013, 02:29 AM
  3. [BUG RC1] Back Button triggers through frames
    By Bipolar_Games in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 10th October 2012, 01:23 AM
  4. WP7 back button & score
    By Droggelbecher in forum XNA Export Module Version 2.0
    Replies: 2
    Last Post: 14th June 2012, 08:36 PM
  5. Using Back button in Android Object
    By Kisguri in forum Android Export Module Version 2.0
    Replies: 21
    Last Post: 12th March 2012, 10:41 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
  •