User Tag List

Results 1 to 8 of 8

Thread: Delete characters off a string?

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

    Join Date
    Jun 2015
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Delete characters off a string?

    Since actual edit boxes don't scale very well to fullscreen, I'm exploring ways to turn a normal string into a kind of edit box. Is there a way to remove the last character of a string once the player presses the backspace button?

    So, for instance, if a string said "Clickteam" and the player hit the backspace key once, it would then say "Clicktea"

  2. #2
    Clicker Fusion 2.5Fusion 2.5 Mac
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    zip2kx's Avatar
    Join Date
    Jun 2015
    Posts
    780
    Mentioned
    17 Post(s)
    Tagged
    0 Thread(s)
    I dont know how you do this but a way would be to have a edit box off frame and a string object. Then always set the string to the text in edit box.

  3. #3
    Clicker 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)

    Join Date
    Apr 2017
    Posts
    113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    This functionality is in the expression editor:
    Left$( "ClickTeam", Len( "ClickTeam" )-1)

    or You can use String Parser (if You need more options)
    on Parser Object Set source string
    and on your text object use a substring

  4. #4
    Clicker 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)

    Join Date
    Jun 2015
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How would I get the player to select the edit box, if it was offscreen?

  5. #5
    Clicker Fusion 2.5Fusion 2.5 Mac
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    zip2kx's Avatar
    Join Date
    Jun 2015
    Posts
    780
    Mentioned
    17 Post(s)
    Tagged
    0 Thread(s)
    You can bring it into focus with an event, so even if it's not visible it's "selected."

    Always
    ->Bring edit box into focus.

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleMac Export Module
    dsilvers's Avatar
    Join Date
    Jun 2008
    Location
    Boston, MA
    Posts
    521
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    What I've done is when a text box is selected, the text cursor is always brought to the end of the edit box. This way at least you can backspace and type new stuff and not be typing from a weird position. The only limitation I've found is the inability to create a typing cursor. I'll probably be switching to a monospace font like Courier New just so I can sneak a cursor in.

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

    Join Date
    Jun 2015
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    edit:

    post removed.

  8. #8
    Clicker 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)

    Join Date
    Jun 2015
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dsilvers View Post
    What I've done is when a text box is selected, the text cursor is always brought to the end of the edit box. This way at least you can backspace and type new stuff and not be typing from a weird position. The only limitation I've found is the inability to create a typing cursor. I'll probably be switching to a monospace font like Courier New just so I can sneak a cursor in.
    How do I set the text cursor to the end?

Similar Threads

  1. Remove characters from a string
    By Ls2 in forum Fusion 2.5
    Replies: 2
    Last Post: 6th November 2015, 12:53 PM
  2. Get the number of characters in a string
    By UltraHammer in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 12th September 2013, 03:33 AM
  3. Foreign String Characters in IOS - Not Possible?
    By hcem in forum iOS Export Module Version 2.0
    Replies: 6
    Last Post: 24th January 2013, 01:51 PM
  4. String characters substitution
    By Boba Fonts in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 26th February 2012, 05:33 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
  •