User Tag List

Results 1 to 4 of 4

Thread: Off-Center Circlular Motion for Side Detectors

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleMac Export Module
    dsilvers's Avatar
    Join Date
    Jun 2008
    Location
    Boston, MA
    Posts
    658
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Off-Center Circlular Motion for Side Detectors

    I need to add a couple side detectors to the paddle in my latest project. The problem is that the paddle rotates in a circle around the board, and while I can get the detectors to stay in the middle, I'm having trouble setting them to either side of the paddle and circling properly.

    I'm currently setting the Left Side detector's X position to ( X( "paddle" ) - 64 ) + ( Cos([dirValue("paddle") ) ) [dirValue is the arc tangent calculation for the paddle, calculated in a different event)
    And Y position to ( Y( "paddle" ) ) - ( Sin(dirValue( "paddle" ) ) )

    However what ends up happening is the side detector will STAY to the left off the paddle, instead of rotating to the proper position. For instance, the paddle starts on the bottom of the screen, so after rotating 180 degrees, the side detector should be on the right side of the paddle. The positioning of the paddle also tends to fall off unless it's at 0 or 180 degrees.

    Can anyone help my math please?

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleMac Export Module
    dsilvers's Avatar
    Join Date
    Jun 2008
    Location
    Boston, MA
    Posts
    658
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Figured it out, just moved the hotspots. :P

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Just saved me two hours of useless (and probably pointless) tests

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleMac Export Module
    dsilvers's Avatar
    Join Date
    Jun 2008
    Location
    Boston, MA
    Posts
    658
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Yeah, I wish we had proper parenting, not just "set position to object's X." Like, actually nesting a child object under a parent that would accept its position, rotation, scale, etc.

Similar Threads

  1. 8 direction motion & space motion widget
    By drnebula in forum Widgets
    Replies: 13
    Last Post: 15th June 2012, 08:25 AM
  2. Internal Collision Detectors
    By alxmrg in forum Hardware Accelerated Runtime
    Replies: 0
    Last Post: 13th February 2011, 06:16 PM
  3. Collision Detectors
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 28th July 2009, 09:04 PM
  4. Enemy Collision Detectors
    By Martin_Bodger in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 8th August 2008, 12:57 AM
  5. Enemy Detectors
    By chrilley in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 1st December 2006, 11:38 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
  •