The Daily Click ::. Forums ::. Klik Coding Help ::. 6 text question
 

Post Reply  Post Oekaki 
 

Posted By Message

\/\/olf

Creative Genius

Registered
  06/08/2005
Points
  76

VIP Member
12th September, 2008 at 15:22:54 -

Alright. So I'm wondering if there's a text that has 6 lines, for example, can mmf read each seperately? And edit them separately as well and display the result in another text box?

E.g, ---S--G-
---M--R-
---O--E-
---K--A-
---I--T-
---N--!-

so the result text box should read, 'smokin' and then 'great!' after a delay. Also, I wonder how to do a delay. Any help in this matter will be most appreciated as always.

[thanks to Eternal Entertainment for telling me I had posted this in the wrong section ]

 
Image

www.OldMansTale.net
Sign the Petition! Go go Go!!

Matt Boothman

The Nissan Micra of forum members

Registered
  20/09/2002
Points
  109

Game of the Week Winner
12th September, 2008 at 16:12:35 -

What do you mean by MMF "reading" the text?

If it's just a normal String object, can you not just have two paragraphs inside your string, one that says SMOKIN and one that says GREAT! and just switch between the two using the "Set Paragraph" action?

Oh and a delay would be easy, just add to a counter or an alterable value every second or whatever and when the counter reaches the value you want just put,

"Counter >= X"; Set Paragraph

where X is your value.

Image Edited by the Author.

 
http://soundcloud.com/normbo - Listen to my music.

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
12th September, 2008 at 17:31:24 -

You could have one string object off-screen that's only for holding your whole conversation (I'm assuming you want to do a dialogue box or something, appologies if you aren't). Then you'd need a counter, and another string object that would be your actual display that the player will see.

Say your off-screen string object has:

Paragraph 1: "Lady: Hello there, where is my house?"
Paragraph 2: "Kid: How am I supposed to know? Who are you?"
Paragraph 3: "Lady: Don't be a dummy, I'm your old MA!"
Paragraph 4: "Kid: That's ridiculous, I'm an orphan! An orphan from space!"


Okay now you would set it so that the display string object's text is always equal to the off-screen string object's (counter value) paragraph. Then you could have it so that every time a player presses a key or something the counter gets incremented by +1 and it'd show the next line of the conversation.

But I'm guessing this isn't exactly what you're looking for.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

\/\/olf

Creative Genius

Registered
  06/08/2005
Points
  76

VIP Member
12th September, 2008 at 21:20:20 -

Haha not exactly a dialog box, no. But that still definitely helps. Both the delay thing and what Del Duio said are helpful.

See, the thing is, 'smokin' n 'great' were just examples. Those will change all the time. So i just need something that will pick up only alphabets from a string. And as for the 6 lines, I think I should be able to assign each line to a seperate text object or string object and then keep on deleting the first character (after a delay) until it comes to a letter and not a minus sign/dash. And then have that letter show on the result text box.

 
Image

www.OldMansTale.net
Sign the Petition! Go go Go!!
   

Post Reply



 



Advertisement

Worth A Click