User Tag List

Results 1 to 8 of 8

Thread: scaling formula - widget?

  1. #1
    No Products Registered

    Join Date
    Aug 2010
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    scaling formula - widget?

    What I have in mind is a set of variable parameters that will scale an object - mostly I am thinking front to back.

    Variables: Ybottom, Ytop, InitialScale, FinalScale, other?

    As the object moves from Ybottom to Ytop it is scaled - on a percentage or ratio basis? - down. Or up for that matter but I am thinking of a perspective situation so as the object/player moves 'away', into the room it is scaled down relative to the proportion of the room.

    I have had the thought for some time but never made a start. Before I do i thought I would check and see if such a thing already exists is some form.

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: scaling formula - widget?

    You can set the scale to Distance/x, where x is the dampening you want. EG, if it is 10 pixels away but you want it scale 1.0 at 10 pixels, x would be 10.0 (with the .0). The Distance can be X-only distance, Y-only distance, or standard XY-distance.
    Working as fast as I can on Fusion 3

  3. #3
    No Products Registered

    Join Date
    Aug 2010
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: scaling formula - widget?

    Thanks LB - I will try that later.

    Just a general thumbs up on your overall offerings here. I have picked up a lot through your replies. Consistent and clear. Thx.

  4. #4
    No Products Registered

    Join Date
    Aug 2010
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: scaling formula - widget?

    No luck. This is what I ended up with after various convoluted attempts to find a ratio. The drawing hopefully locates things. "zx" is the object used to store values.



    (BOT_SCALE( "zx" )-(BOT_SCALE( "zx" )-TOP_SCALE( "zx" )))/((Y( "zx" )-TOP_Y( "zx" ))/(BOT_Y( "zx" )-Y( "zx" )))

    It does some scaling but nothing like what I have in mind.

  5. #5
    mojofltr
    Guest

    Re: scaling formula - widget?

    I don't know if this is what you are asking for:
    http://games4noah.sitesled.com/knp/3DBALL3.exe
    (Press the spacebar for a 'behind the scenes' view.)

    ...

    Set scale to Y("Active")*0.01

    The front and back walls of the room are set the same way. Then I built the collision stuff around that.

  6. #6
    No Products Registered

    Join Date
    Aug 2010
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: scaling formula - widget?

    mojofltr - hey that's pretty cool. Certainly the scaling effect is what I am looking for.

    I am very interested in studying the mfa if you were OK about that.

  7. #7
    mojofltr
    Guest

    Re: scaling formula - widget?

    http://mfa.aquadasoft.com/upload/1313015217-3DBALL2_c.mfa

    I didn't comment it very well, but honestly there is not much to it... so it should be fairly easy to figure out what's going on.

  8. #8
    No Products Registered

    Join Date
    Aug 2010
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: scaling formula - widget?

    Many thanks for that. With just a quick look through it seems clear enough

    >> I didn't comment it very well
    I would like to see your well commented files then. This was about as good as I ever get. Grreat.

    I'll let you know how I get on.

Similar Threads

  1. 3D menu Widget - Wild Widget Contest entry
    By Czentnar in forum Widgets
    Replies: 16
    Last Post: 26th March 2011, 12:51 AM
  2. INI Formula Help
    By MajorityCA in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 8th February 2009, 01:28 AM
  3. The Digit Widget [WIP] (multi-widget)
    By Raylax in forum Widgets
    Replies: 1
    Last Post: 13th December 2008, 11:42 PM
  4. Help with formula
    By LB in forum The Games Factory 2 - Technical Support
    Replies: 6
    Last Post: 13th June 2007, 02:13 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
  •