User Tag List

Results 1 to 3 of 3

Thread: How to retrieve sprite/string size?

  1. #1
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Jun 2006
    Posts
    903
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    How to retrieve sprite/string size?

    Hi,
    to my upcoming commercial product I would need to know how to retrieve height/size of sprites and string..seemed to be trivial but it is not. Especially with string..any way how to do it instead of Len(string)*10 where 10 is average font width? Any extensions for that?
    Thanks

  2. #2
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,000
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    For String objects there is an extension called CalcRect if I remember correctly.

    For Active objects you can get the width and height by doing simple subtractions. The coordinate expressions you need are under Retrieve data from an object > Object > Position:
    Code:
    Width = X Right( "Active" )-X Left( "Active" )
    Height = Y Bottom( "Active" )-Y Top( "Active" )

  3. #3
    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)
    "Calculate Text Rect object" is the name. I don't recall where to get it, try using ExtensionView by Jaffob.
    Working as fast as I can on Fusion 3

Similar Threads

  1. Retrieve Alternative String from same object with different ID
    By paobrasil in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 7th October 2013, 09:05 PM
  2. [Beta] Flash Sprite String
    By Pharanygitis in forum Beta Flash Extensions
    Replies: 9
    Last Post: 16th April 2013, 02:14 PM
  3. Get size in pixel of a string (or convert string length to pixel)
    By iOSC in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 21st March 2013, 06:30 PM
  4. Trying to retrieve substring out of string?
    By brawltaunts22 in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 25th December 2010, 11:24 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
  •