User Tag List

Results 1 to 5 of 5

Thread: Number to letter conversions...

  1. #1
    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)

    Number to letter conversions...

    Hello,

    Apart from using ASCII definitions, is it possible to return a character from a value?

    For example: 1 returns "A", 2 returns "B", etc...

  2. #2
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Without using ASCII, the easiest way is to make a list like

    a
    b
    c
    d
    e
    f
    g
    h
    i
    ...

    all through the alphabet, and then request the line content for the number you're looking for.

  3. #3
    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,367
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Jacob was faster than me. I was going to suggest you can use substrings:
    Set alterable string to Mid$("abcdefghijklmnopqrstuvwxyz", Random(26), 1)

    Both methods works fine

  4. #4
    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)
    Substrings is very nice! The list aint bad either. Cheers guys.

  5. #5
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah yes, substrings work great. The list method is only favourable when you have words longer than a single character to use. For example, you could make a list like

    Zero
    One
    Two
    Three
    Four
    Five
    Six
    Seven
    Eight
    Nine

    And then request the line text at an index to convert 6 to Six or 3 to Three.

Similar Threads

  1. Info about extensions/conversions
    By imothep85 in forum Paid Design & Development Requests
    Replies: 4
    Last Post: 28th April 2013, 03:32 PM
  2. Getting a random number between a negative and positive number
    By D_Light in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 9th January 2013, 10:51 PM
  3. Letter-by-letter text - next line if word too long
    By DistantJ in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 5th February 2008, 06:51 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
  •