User Tag List

Results 1 to 6 of 6

Thread: Need help calculating Y coefficent and placement

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Need help calculating Y coefficent and placement

    I am trying to make some parallaxing and I want to save me some trouble by having the objects place themself automatically on their "right" spot depending on the frame width/height and the amount of coefficient of the layer they are moved to.

    So far I have managed to do this with the X coefficient. Now If I increase the X coefficient or the Frame width my code will still make up for this automatically by using a multiplication with the actual layer x coefficient.

    However I dont know how to get this to work with the Y coefficient for some reason. I just aint able to place the object at the right spot automatically, now I had to do a lot of trial and error in this example to finally find that mutliplying with 1.99 was making the object place at the right spot with an Y coefficient of 1.6.

    Do anyone know a forumla that can do this automatically instead?
    Attached files Attached files

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Do anyone know how to do this?

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    bump.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Patrice's Avatar
    Join Date
    Sep 2010
    Posts
    603
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Sorry I don't understand your problem (and I'm french so...)

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Patrice View Post
    Sorry I don't understand your problem (and I'm french so...)
    I can't understand the problem either, and I'm not French, I'm from the USA, so my native language is English. I think that Outcast will need to clarify why he can't get it to work.

  6. #6
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    I want to have some formula or way on how to calculate where to place the objects so they are automatically placed at the bottom of the screen depending on their height and the height of the screen and the Y coefficient of the layer of the object. Now I have set Y to "Frame Height*1.199". Instead of that and finding a number that fits, in this case 1.199 I want a formula that can calculate this and place objects at the right Y position (bottom) depending on height of the active and the Y coifficient of the layer (in this example the layer has a Y coifficient of 1.6

Similar Threads

  1. object placement
    By JWJ in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 28th July 2010, 01:51 AM
  2. Application placement question...
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 25th May 2010, 10:34 PM
  3. Odd placement issue
    By TwistidChimp in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 22nd April 2007, 03:22 PM
  4. INI File placement
    By Jaeu in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 16th October 2006, 04:07 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
  •