User Tag List

Results 1 to 3 of 3

Thread: Scale in Y using Ball Y

  1. #1
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    warlords's Avatar
    Join Date
    Oct 2011
    Location
    Dk
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Scale in Y using Ball Y

    Hi

    I have height on 640 pixels. Scale normal is 1.0. Set Counter = Ball Y

    How can i calculate so Y ball = 0 is Scale = 0.01 and Y ball = 640 is Scale = 1.0 ?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,337
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    ( 100.0 / Frame Height * ( Frame Height - YMouse ) ) / 100.0

    This scales from 1.0 to 0.0. I can't remember in the moment how to get it to range between 1.0 and 0.01, but I am sure someone can help you out.

  3. #3
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    fnkycoldmadeanr's Avatar
    Join Date
    Jul 2017
    Location
    Melbourne, Australia
    Posts
    95
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    ScaleY=Max(0.01,Yposition/640.0)

    But you prob won’t have to worry too much about the Max(,) depending where your hotspot is.
    You may or may not have to store it in an alterable value to prevent it from converting to an integer

Similar Threads

  1. Ball / Round object physics (ball won't stop)
    By LemonyWeasel in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 30th November 2015, 10:59 PM
  2. Hiraken Ball (Karate Dodge Ball)
    By aenever in forum Android Released Games & Apps
    Replies: 2
    Last Post: 20th June 2015, 09:34 AM
  3. Hiraken Ball (Karate Dodge-ball)
    By aenever in forum WIP & Released Games & Apps
    Replies: 7
    Last Post: 11th June 2015, 02:54 AM
  4. Setting the Scale of an Object to the Scale of the Object it was Created From
    By Corlen in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 26th July 2013, 07:53 PM
  5. Scale Example
    By Captain_Harris in forum File Archive
    Replies: 1
    Last Post: 3rd April 2012, 02:39 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
  •