User Tag List

Results 1 to 4 of 4

Thread: RPG Style Typewriter dialogs?

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    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)
    chrilley's Avatar
    Join Date
    Jul 2006
    Posts
    1,013
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)

    RPG Style Typewriter dialogs?

    Hay guys,

    I've got a dialog system for my game I'm working on, but there's one tiny issue with the dialogs.

    I use stringparser to get (Value A) number of letters of an hidden string. Value A keeps adding so it types out it letter by letter, which is cool. But when the message is reaching the end of the line and isn't yet done printing the word it places it on the row below and completes it. Like:

    "Hi dude, I'm not from this vill"

    "Hi dude, I'm not from this
    village. But I eat a lot of panc"

    "Hi dude, I'm not from this
    village. But I eat a lot of
    pancakes anyway."

    Get it? Is there a way to make the dialog-system notice that the next word must be placed on the next line right away, before trying to fit it in the current line?

  2. #2
    Clicker Fusion 2.5 Developer

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

    Re: RPG Style Typewriter dialogs?

    You will have to use a font which has evenly spaced letters, then scan the lenth of each word. If the word is longer than there are characters left on that line, instead a new line.

    In MMF2 thats: newline$

  3. #3
    RayMarble
    Guest

    Re: RPG Style Typewriter dialogs?

    In case you have a very simple and controlled situation maybe hard formatting the text (hitting Enter after a certain amount of characters) is the easiest thing to do. It's a bit simple but works

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jul 2006
    Location
    Pittsburgh, PA, USA
    Posts
    777
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: RPG Style Typewriter dialogs?

    You'd make a custom font and make sure that each letter is the same width. Then use Text Blitter to import the font and, like Nick said, check the total number of letters that fit on a line and subtract the current value of letters from that total and see if the remaining spaces are smaller than the next word. If so, make it go to the next line.

Similar Threads

  1. Typewriter Text
    By gamefreak202 in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 13th December 2011, 04:05 AM
  2. Typewriter effect?
    By Pixzel in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 7th September 2011, 10:05 PM
  3. Typewriter effect example.
    By Gummy in forum File Archive
    Replies: 3
    Last Post: 13th January 2010, 05:45 PM
  4. Typewriter effect
    By kjellm87 in forum The Games Factory 2 - Technical Support
    Replies: 4
    Last Post: 4th August 2008, 03:58 PM
  5. Typewriter text
    By Mantis in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 12th February 2007, 01:18 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
  •