User Tag List

Results 1 to 4 of 4

Thread: Setting X position to X Object @ XActionPoint?

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,308
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)

    Setting X position to X Object @ XActionPoint?

    I am trying to think of a method here as to setting the x position of one object to x position of another object at Action Point.

    Here is what I want to say:
    ['Platform' is overlapping 'Player Floor Detector']
    -> [Platform]: Set X Coordinate to X( "Player Floor Detector" ) @ XActionPoint( "Platform" )

    In other words, if I leave '-> Set X Coordinate to X( "Player Floor Detector" )' like that, the platform object sets its x position at its hot spot.
    I want it to set X position of platform to X of floor detector at platforms's action point. How do I do this?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Setting X position to X Object @ XActionPoint?

    Hmm. Well, the Set X Co-ordinate actions work with the hot spot as that's used as the actual position of the object. You could do it with a bit of mathematics, though, as there are expressions for retrieving the action point coordinates...

    -> Set X Coordinate to X("Player Floor Detector") + (XActionPoint("Platform") - X("Platform"))

    (No guarantees whether this actually works as-is without fatal mathematical flaws, my head is going strange at the moment)

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCSWF Export Module
    N64Mario's Avatar
    Join Date
    Nov 2008
    Location
    USA
    Posts
    1,308
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)

    Re: Setting X position to X Object @ XActionPoint?

    No, that doesn't seem to work.

    So, I suppose considering there is no correct MMF2 meaning to 'Set X Coordinate to X( "Player Floor Detector" ) @ XActionPoint( "Platform" )', I take it I have to change the hot spot to where I want it positioned.

    Originally the hot spot of the platform was 0,0, while the action point was top-center of the object. so I guess I have to set the hot spot to the top-center of the image to make this work.

  4. #4
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Setting X position to X Object @ XActionPoint?

    You could set the position to where you want it to go -16 or half the width of your platform.

Similar Threads

  1. Setting Position Relative to Rotating Object
    By gkinfinity in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 21st December 2011, 03:04 PM
  2. setting the position of the mouse
    By ac3raven in forum Multimedia Fusion 2 - Technical Support
    Replies: 26
    Last Post: 26th April 2011, 02:58 AM
  3. [BUG] Setting Position at Action Point
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 21st December 2006, 08:54 PM
  4. MMF 2 - Setting Tab Position of Control
    By droberson in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 8th December 2006, 01:34 AM
  5. Setting position fast
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 4th October 2006, 01:20 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
  •