User Tag List

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

Thread: Fun with accelerometers

  1. #1
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Pineapple's Avatar
    Join Date
    Oct 2010
    Posts
    431
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Fun with accelerometers

    I know there are already a few accelerometer examples, but I made one too!

    I think mine is a little more feature packed, though.

    Features: movement via accelerometer, a fairly realistic rolling ball, device calibration/recalibration, and tilt direction.
    accelerometer_fun.zip

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Koji_Kabuto's Avatar
    Join Date
    Jul 2006
    Location
    Venezuela
    Posts
    2,851
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Thanks for such a complete example.

  3. #3
    Clicker Multimedia Fusion 2iOS Export Module

    Join Date
    Apr 2009
    Posts
    157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much for this!

  4. #4
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,817
    Mentioned
    6 Post(s)
    Tagged
    2 Thread(s)
    Nice!

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleMac Export Module
    Evilized79's Avatar
    Join Date
    Nov 2009
    Location
    Netherlands
    Posts
    875
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Very good example. Thanks!

  6. #6
    Clicker Multimedia Fusion 2 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleUnicode Add-on
    iamjot's Avatar
    Join Date
    Nov 2008
    Location
    Austria
    Posts
    712
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Pineapple this is great. And how much lines does your way have: 4!? Awesome work. Thank you very much. Because of your example - I am thinking of just another labyrinth game Heheh just kidding .... well but if i look at the example again.... maybe.... Thank you!

  7. #7
    Clicker Multimedia Fusion 2iOS Export ModuleSWF Export Module
    JosephFTaylor's Avatar
    Join Date
    May 2008
    Location
    Essex, England
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This will smooth out the rotation/angle of the Active:
    Code:
    rot( "Active" )+(((360-(ATan2(((YDirect( "Accelerometer object" )*-1)-Global Value Y), (XDirect( "Accelerometer object" )-Global Value X))) mod 360)-rot( "Active" )+540) mod 360-180)/10.0

  8. #8
    Clicker Multimedia Fusion 2iOS Export ModuleSWF Export Module
    JosephFTaylor's Avatar
    Join Date
    May 2008
    Location
    Essex, England
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by JosephFTaylor View Post
    This will smooth out the rotation/angle of the Active:
    Code:
    rot( "Active" )+(((360-(ATan2(((YDirect( "Accelerometer object" )*-1)-Global Value Y), (XDirect( "Accelerometer object" )-Global Value X))) mod 360)-rot( "Active" )+540) mod 360-180)/10.0
    Here's the story behind that: http://community.clickteam.com/showthread.php?t=69581

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,136
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    This makes me want to re-do my old accelerometer-controlled app... It was pretty poor really, I couldn't get it to reconfigure.

  10. #10
    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 know this was made with iOS in mind, but I tried saving it as an XNA application for Windows Phone. I ended up with pretty weird behavior, mainly that the motions were reversed. If I tilted my phone so left side was down, ball rolled right, etc.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Touch Joystick+Accelerometers?
    By Koji_Kabuto in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 5th June 2013, 10:21 AM
  2. Moving in 8 dierections or more with accelerometers
    By copperbob in forum Android Export Module Version 2.0
    Replies: 1
    Last Post: 15th February 2012, 05:45 AM
  3. Beta 4 / SDK 4.1 - Accelerometers as Joystick Bugs
    By BHGames in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 30th October 2010, 01:39 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
  •