User Tag List

Results 1 to 4 of 4

Thread: Is there any simple way of doing this

  1. #1
    No Products Registered

    Join Date
    Mar 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is there any simple way of doing this

    Is there any easy way to either set a set a string to always equal a global value OR make a coutner left aligned. Sorry I'm a new at the whole MMF2 thing so I could really use the help

  2. #2
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Is there any simple way of doing this

    For the string to global value. In your expression editor you can use Val or $Str to convert numbers to string and string to numbers. I have an example of this on my website that you can download look at the coding.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    Clicker Fusion 2.5 Developer

    Join Date
    Jun 2006
    Location
    Hampshire, UK
    Posts
    963
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Is there any simple way of doing this

    To set the string to the global value make this event:

    Always - Set alterable string of your string object to: str$(Global Value A)

    str$(number) converts a number to text so you can use it in a string object.



    To get a left-aligned counter, do exactly the same thing, since strings are left aligned by default:

    Always - Set alterable string of a string object to: str$(value("counter"))

  4. #4
    No Products Registered

    Join Date
    Mar 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Is there any simple way of doing this

    Thank you both so much, made my life a hell of a lot easier!

Similar Threads

  1. Simple INI example
    By happygreenfrog in forum File Archive
    Replies: 0
    Last Post: 18th December 2013, 06:55 PM
  2. This is probably really simple...
    By dMGalaxy in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 3rd July 2011, 11:45 PM
  3. Its got to be simple
    By delusan in forum The Games Factory 2 - Technical Support
    Replies: 9
    Last Post: 25th February 2007, 06:22 PM
  4. Simple Moo example
    By Looki in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 30th October 2006, 01:49 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
  •