The Daily Click ::. Forums ::. Klik Coding Help ::. I need some help
 

Post Reply  Post Oekaki 
 

Posted By Message

-MacAdaM-

Megaman Fosho

Registered
  12/02/2008
Points
  560
28th November, 2008 at 00:16:46 -

Okay... I have never really started to use the String Parser.
But I have a couple questions:
(I'm using TGF1 by the way)

1 - Can you make text appear letter by letter with this extension?
If you can then:
2 - Can anyone make a example with it? I can't figure it out.

If you cant do this with the String Parser extension, its okay, not really that big of a deal, I just think it would be a cool effect for this game I am making.

 
Your just jealous that you're not as awesome as me.
(And my megaman avatar )

Zephni

My other cars a Balrog

Registered
  17/10/2007
Points
  4019

Has Donated, Thank You!VIP MemberSonic Speed
28th November, 2008 at 00:36:28 -

You want text to display character by character on screen? You can actualy do that with the string object.
Heres an example i done not to long back: http://www.create-games.com/download.asp?id=7139

 
dont make me divide by zero...

Zephni

My other cars a Balrog

Registered
  17/10/2007
Points
  4019

Has Donated, Thank You!VIP MemberSonic Speed
28th November, 2008 at 00:38:55 -

Gah sorry, i just realised you said your using TGF1. does TGF1 have the special expresions "len" and "left$"?

 
dont make me divide by zero...

-MacAdaM-

Megaman Fosho

Registered
  12/02/2008
Points
  560
28th November, 2008 at 00:39:44 -

That example was a .CCA TGF1 can only open .GAM

Thanks for trying though! Hopefully I can find another way (Or find the extension for TGF).
Anyone know a good site for extensions?

EDIT---------------------

String Parser for TGF1 has Len and Left$ I just looked.
But I have no clue how to use it.
Any help man?

Edited by -MacAdaM-

 
Your just jealous that you're not as awesome as me.
(And my megaman avatar )

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
28th November, 2008 at 12:17:43 -

Ahh, srry MacAdam, I'm too lazy to write!

But here's an explanation of one way to do it!
I use a slightly different way though, but as I said, I'm lazy today!

Cudos to Dustin:
"The creation of a progressive text system is rather simple, but can be a bit tricky if you're not sure what you're doing. It's most complicated features involve the "Left$" command and the "Len" command, both available in the MMF event calculator.

The "Left$" command displays all the text in a paragraph from the left, up to a given number that you choose. When you click the "Left$" button, this will appear in your equation box: "Left$( >Enter string here<, 0 )"

The "Len" command will convert the length of a string to a numeric value in order to compare it to any other value. When you click the "Len" button, this will appear in your equation box: "Len( >Enter string here< )"

To begin, you'll need three individual text objects to perform progressive text: an on-screen text object and two off-screen text objects. One of the off-screen text objects will be the "Conversion String", while the other will be the "Text string". The "Conversion String" will be used as a placeholder for all text moving in between the main, on-screen text object and the off-screen "Text string" object, which will hold all paragraphs, ready to be displayed when you choose them to be.

Create all your text in the off-screen "Text String" object. Once you have done that, the rest is left to programming.

You'll also need two counter objects to keep track of the current Paragraph and Letter Display. Create an event in the Event Editor that states every 00'05" a value of 1 will be added to the Letter Display Counter. The time of 00'05" can be adjusted higher or lower to create faster or slower text, depending on what you prefer.

Next, create an set of events that change the current alterable string of the "Conversion String" to a paragraph from the "Text String", depending on the value of the Paragraph Counter. Create a new event for every separate paragraph available in the "Text String."

Create an event that states every 00'05" (more or less, depending on the other timed event stated earlier), the alterable string of the on-screen text will be set to:

"Left$( string$( "Conversion String" ), value( "Text Counter" ) )"

This will display one letter for every 00'05", or every time the event runs. This event tells the Event Editor to display the current text, from the left most side, of the "Conversion String" to the amount of letters equal to the value currently stored in the Letter Display counter.

All that's left is to add an event stating when the user presses Enter and the value of the Letter Display counter is greater than the length (Len) of the current text used by the "Conversion String", to add a value of 1 to the Paragraph counter and set the value of the Letter Display counter to zero."


 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


...actually Ell Endie, but whatever.
Image
Image

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
28th November, 2008 at 12:28:28 -

As stated above you only need to use the generic string functions, string parser is not needed at all. String Parser is usually used for sending data in online games.

 
n/a

-MacAdaM-

Megaman Fosho

Registered
  12/02/2008
Points
  560
28th November, 2008 at 15:33:01 -

Thanks a lot guys!
I figured this out last night before I read any of this, after like 15 minutes, or trying random things.
But this helped a lot! Now I actually know what I'm doing more, when before I was just clicking randomly
Thanks again.



-MacAdaM

 
Your just jealous that you're not as awesome as me.
(And my megaman avatar )
   

Post Reply



 



Advertisement

Worth A Click