User Tag List

Results 1 to 4 of 4

Thread: I can't get the accelerometer to work (XNA Phone Application)

  1. #1
    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
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I can't get the accelerometer to work (XNA Phone Application)

    I've tried to get my player controlled by the Accelerometer for my phone application but I can't figure out how to get it to work. I have looked at the help documentation. It is unclear whether I should be using an Accelerometer or a Joystick set as Accelerometer, or both. I have tried all those combinations.

    Any best practices or more explicit instructions are appreciated. I have the behavior I want with a Touch Joystick, but an Accelerometer is the ultimate goal, masked for left and right motion only.

    Thanks.

    Phone - WP7.1, HTC Trophy

  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
    0 Post(s)
    Tagged
    1 Thread(s)
    Does you player use one of the in-build movement? If yes, then you should set the property Joystick / Device in the frame properties, to "Accelerometer".
    If not, then you should use the Accelerometer object.

  3. #3
    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
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    By in-build movement, do you mean the types from the movement drop-down? Yes, I was using the 8 direction type. Is there a more appropriate one to use? My assumption was that if I use the Joystick type:Accelerometers that was the right one, but my player doesn't move. I have his control assigned to Joystick 1.

    Thanks for the assistance.

  4. #4
    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
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    MyAccelTest.mfa

    I have attached my MFA file. I started over with a project dedicated to just trying to work out the kinks. Right now it is with an accelerometer joystick. I have tried with accelerometer object, too. One thing I am seeing with any variation I try where I get some movement (and it never feels right) is that it stops responding at all after about 10 seconds.

    Any guidance is appreciated.

    Steve

Similar Threads

  1. Accelerometer control simply don't work !
    By waw_demmon in forum Android Export Module Version 2.0
    Replies: 11
    Last Post: 27th January 2014, 10:46 PM
  2. Help getting XNA to work with Windows Phone
    By jcbullinger in forum XNA Export Module Version 2.0
    Replies: 2
    Last Post: 18th February 2013, 06:17 PM
  3. XNA Win Phone 7 Effects doesnt work
    By Droggelbecher in forum XNA Export Module Version 2.0
    Replies: 3
    Last Post: 21st August 2012, 07:08 AM
  4. Accelerometer does not work when landscape flips
    By AndyH in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 15th October 2011, 08:28 AM

Tags for this Thread

Posting Permissions

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