User Tag List

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

Thread: How can I reset the accelerometer object's coordinates?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Daniel_M's Avatar
    Join Date
    May 2011
    Location
    Chicago, Illinois
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy How can I reset the accelerometer object's coordinates?

    Aloha! I am working on a game to be played on Andriod phones, and I am using the accelerometer object. I am able to fully move My character in a top view perspective, so that's fine. However, the character won't stand still unless You lay the phone flat on a table, or hold it very specifically. It's difficult and not pleasing at all. It forces Me to play with the phone on a table, and I want to be able to hold it anyway I want and tilt it to move the character.

    Is there anyway I can reset where the accelerometer object considers the phone's 0,0 point or something?
    Please halp! Thanks!

  2. #2
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)
    You might need to change how you are moving your player.

    You can get the raw data from the accelerometer so with using that you should be able to create a custom movement to perform like you would like it to. Without knowing a bit more or seeing an MFA file thats about all I can suggest.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Daniel_M's Avatar
    Join Date
    May 2011
    Location
    Chicago, Illinois
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have something like this:

    Two Counter Objects and One Player Object. Screen Orientation: Landscape

    Aways> SET counter1 to: X Direct( "Accelerometer object" ) (there's no space bewteen X & Direct. I put one here because it would show up as an emoticon)
    Current value of counter it's GREATER than 0.16 > Go Left
    Current value of counter it's LOWER than -0.16 > Go Right

    Aways> SET counter2 to: YDirect( "Accelerometer object" )
    Current value of counter it's GREATER than 0.16 > Go Up
    Current value of counter it's LOWER than -0.16 > Go Down

  4. #4
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)
    What about moving the player changing its X or Y location in place of using one of the movements.
    This would give you much finer control over it.

    Something along the lines of -- Current value of counter GREATER than 0.16 Set X of player = X of player + 1



  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Daniel_M's Avatar
    Join Date
    May 2011
    Location
    Chicago, Illinois
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh, well that's what I'm already using. But these controls won't work the same if You're lying on Your back v.s. having the phone flat on a surface.

  6. #6
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Oct 2006
    Posts
    270
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just for clarification, you're looking for a recalibration of the gyro/accelerometer.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Daniel_M's Avatar
    Join Date
    May 2011
    Location
    Chicago, Illinois
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, I think that'd be what I need! The player should be able to recalibrate it to suit their phone's positioning like if they're holding it while standing, or sitting, or lying down and stuff like that!

  8. #8
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Oct 2006
    Posts
    270
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have never used accelerometer in Fusion, but what you might need to do is have 4 counters. The 1st set of two is the calibrated position of the accelerometer, the 2nd would be the current position of the accelerometer, then get the difference between the two to get your >.016 events going. Then you could simply recalibrate the accelerometer by setting the 1st set of counters to the current position.

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Daniel_M's Avatar
    Join Date
    May 2011
    Location
    Chicago, Illinois
    Posts
    56
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Um, I don't really know what'cha mean nor how to do it. Would posting the game file help?

  10. #10
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Oct 2006
    Posts
    270
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, let's start with the first question. Can you pull raw data from the accelerometer?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Object coordinates - what are the constraints?
    By Dines in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 23rd February 2012, 03:59 PM
  2. Create Object to X and Y coordinates
    By lorin in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 13th November 2010, 01:46 PM
  3. problem moviment object with coordinates x,y mouse
    By daniele in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 4th August 2010, 08:49 PM
  4. Replies: 7
    Last Post: 11th August 2008, 01:33 PM
  5. Trial Object - Reset not working properly?
    By aidmm in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 20th March 2007, 08:37 AM

Posting Permissions

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