User Tag List

Results 1 to 2 of 2

Thread: Clearing the top line of text is String Parser.

  1. #1
    Clicker Fusion 2.5
    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)
    ACESpark's Avatar
    Join Date
    Oct 2006
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Clearing the top line of text is String Parser.

    In a game i'm making, I use a combination of String Parser and Text Blitter to display in game text. I can have a max of 3 lines and 16 characters per line displayed at once. That isn't alot of space for a story heavy game.

    The letters are displayed one at a time.

    At the moment I have a value counting up to 48 depending on how many letters have been shown, and then removing the top line through the following method:

    midstr$( "String Parser", (16*Alterable Value E( "Text Blitter" )), Alterable Value B( "Text Blitter" ))
    Value B = Current letter displayed.
    Value E = Line to miss.

    This, how-ever doesn't work for a number of reasons:
    a) Most lines do not display 16 characters due to words not fitting on, breaking the code.
    b) When all 16 characters are displayed, it sometimes waits untill the next line is full to display it.
    c) Sometimes it just decides to screw up completely for no reason I can fanthom.

    Is there a way for Script Parser to reconise what Newline$ number it is to display the lines correctly? So when it reaches Newline$ no 3 in a text message, it'll remove everything before the first Newline$?
    That would definately be the better way of doing this..

    I can't figure it out, my knowledge with string parser is limited to getting letters to display.

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clearing the top line of text is String Parser.

    It sounds like you could set Newline$ as a delimiter in the String Parser and remove everything that occurs before the first one, but the actual details of that are something that I can't look up at the moment.

Similar Threads

  1. Extracting Text Using String Parser?
    By pinacoladaxb in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 22nd September 2009, 01:59 AM
  2. String Parser find text
    By Flo in forum File Archive
    Replies: 2
    Last Post: 23rd April 2009, 08:42 AM
  3. Clearing string buffer
    By Nickydude in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 5th April 2007, 11:54 PM
  4. String Parser 2 & Text Blitter [MMF2]
    By LuZeke in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 16th August 2006, 07:41 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
  •