User Tag List

Results 1 to 3 of 3

Thread: BUG ClaculateCounterWidth

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    BUG ClaculateCounterWidth

    Hi
    I have a Counter Object ( type number )
    I have another Counter ( CounterWidth ) to display the Width of 'Counter'

    If SPACE is pressed
    --> Create Counter
    --> Set CounterWidth to 'X Right Counter' - 'X Left Counter'

    ...
    As long as the default value is not changed, CouterWidth allways returns 96.

    ...
    What is causing this?
    How can this be fixed?

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    The width of a counter is not the width of the visible text, but the width of the counter's bounding box in the level editor.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No no, it is fully possible to calculate the visual width/ height of a Counter ( by using 'X Left' and 'X Right' ), in fact i have done this with sucsess.

    ...
    THE BUG
    The BUG only occurs if the Initial Value of the Counter remanins unchanged.
    If you try to get the 'X Left' or 'X Right' values of a Counter Object in any Frames after its Frame of creation, the values returned are correct ( press 'A' in the example below ).

    The values of 'X Left' and 'X Right' for Counter Objects are faulty if retrieved the same Frame as it is created ( press 'SPACE' in the example below ).
    If you do try to retrieve 'X Left' or 'X Right' for a Counter Object the same Frame as it is created, you will get these returns:

    'X Left'
    - returns the X Right position of the Counter Object

    'X Right'
    - returns the X Right position of the Counter Object + 96
    ...
    This bug does not apply to Active Objects.

    I hope i have made myself clear.
    I have attached an uppated example of the BUG.
    Attached files Attached files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •