The Daily Click ::. Forums ::. Klik Coding Help ::. text that appears with one word at a time
 

Post Reply  Post Oekaki 
 

Posted By Message

Willy C



Registered
  14/02/2004
Points
  1524

Game of the Week WinnerKlikCast StarPicture Me This -Round8- Winner!VIP MemberWii OwnerIt's-a me, Mario!Hero of TimeThe Cake is a LiePS3 OwnerI am an April Fool
Batman!Teddy Bear
22nd June, 2004 at 06:03:16 -

How do you make text appear one word at a time in MMF?

 
http://www.robocaptain.com

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
22nd June, 2004 at 06:18:34 -

To do one word at a time is a bit harder than one letter at a time but not much. You will need a string parsing object of some sort, a counter and two strings.

Start of frame:
set string parser token = " "
set string parser String to parse = string1

Always:
set string2 to stringparser$gettextat(counter)
add one to counter.

Sorry about my messy code, I can't decide how I want to write things out when I write them in code. Ok, you write what you want in string 1. Then string 2 is the actual string that will be shown. Using the string parser object you parse the first string and every time there is a space you know there is a new word.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Willy C



Registered
  14/02/2004
Points
  1524

Game of the Week WinnerKlikCast StarPicture Me This -Round8- Winner!VIP MemberWii OwnerIt's-a me, Mario!Hero of TimeThe Cake is a LiePS3 OwnerI am an April Fool
Batman!Teddy Bear
22nd June, 2004 at 07:19:56 -

Oh, I ment one letter at a time. Did I need any extensions? What is the extension called?

Image Edited by the Author.

 
http://www.robocaptain.com

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
22nd June, 2004 at 07:47:51 -

The MMF function Left$("String",x) returns the x leftmost characters of a string. Store the text in a string object, and use a counter.

Always:
Set alterable string of String to Left$( paragraph$( "String", 1 ), value( "Counter" ) )
Add 1 to counter


Presuming the string you want is stored in the first paragraph of String. (The alterable string is separate from the paragraphs, so it won't go over itself)

 
gone fishin'
   

Post Reply



 



Advertisement

Worth A Click