User Tag List

Results 1 to 3 of 3

Thread: Snapping to a percentage using the Drag Object.

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2007
    Location
    I'm right here!!
    Posts
    305
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Snapping to a percentage using the Drag Object.

    Ok guys, I'm trying to get my head around this but I'm confusing myself. :crazy:

    I'll try to explain what's happening and may be someone can stop me being confused(.com). I'm using the Drag Object extension to move an object (rectangle) and getting the X position, not in pixels, but in percentage on screen. For example if the rectangle is in the center of the screen then the 'X' position will be 50, if it's a quarter of the way from the left hand side it would be 25. With me so far?

    I can do this no problem but I'd like the rectangle to snap to whole percentage (integer) numbers, at the moment is moving freely (like 47.3663, etc) and I'd like it to snap to 46, 47, 48... and so on. I know the Drag Object allows to snap to a grid but how would I tell it to snap to whole percentage numbers?

    An extra day's bed rest for anyone who can help.


  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Snapping to a percentage using the Drag Object.

    Position = ((Position/100)*100)

    (Position in pixels)

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2007
    Location
    I'm right here!!
    Posts
    305
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Snapping to a percentage using the Drag Object.

    You mean something like this?

    ((X( "Active" )/100)*100)

    Because if so I tried that and MMF2 crashed!

    Here's the mfa, you might have better luck.

    Menu Maker

Similar Threads

  1. Snapping to a grid in runtime
    By Boba Fonts in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 17th April 2012, 01:18 AM
  2. Beta 15, Testing backdrop object, active object and drag and drop movement
    By Fernando in forum Android Export Module Version 2.0
    Replies: 3
    Last Post: 9th February 2012, 11:57 PM
  3. Cannot get percentage?
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 18
    Last Post: 14th May 2010, 01:08 PM
  4. Grid snapping
    By Sean_M in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 2nd April 2010, 12:37 AM
  5. Percentage
    By dingdong in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 13th December 2006, 06:57 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
  •