The Daily Click ::. Forums ::. Klik Coding Help ::. Text Question
 

Post Reply  Post Oekaki 
 

Posted By Message

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
25th March, 2007 at 16:49:02 -

So I've seen some very good examples of what I want to do in other games, shame I cannot remember ANY of them, heh. But yes, I'm wanting to have the text in my game be displayed in the textbox letter by letter if you know what I mean. Think Zelda 3. How it kinds scrolls along for you then stops at the end and waits for you to continue. Anyone know what I mean? I'm trying to do this for my games but I just can't think of a simple way of doing it =/ Any ideas?

 
Image

Tell 'em Babs is 'ere...

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
25th March, 2007 at 16:56:01 -

I guess it would involve using a sub-application if you want that scrolling easy. Don't ask me how though, never really used it.

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


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

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
25th March, 2007 at 17:11:27 -

Basically you have a string object off screen which contains text (this can be done in game, or loaded externally from a script file of some sort).

I'm not sure about the formula but i think it's something like
set alterable string to string$("display object") + mid$("string object", current character, next character)

so you'd start of at 0,1 then increase them each time (possibly using a counter)
Then when it gets to the end of the string, you could use the string length comparison to the counter value, and if it's equal to the value of the counter then set a flag of an object on.

Basically, when you're getting the text, have this flag off.
I.e
suppose we have
display string (text displayed)
string object (text to read from)
counter
Flag 0 (some object) off:
Display string: set alterable string to string$("display string") + mid$("string object", value("counter"), value("counter") +1)
Add 1 to counter

string length (display string) = string length(string object)
Set flag 0 (some object) on

some button pressed + flag 0 on:
load next paragragh in the script
clear displayed text
set flag 0 off


crude way of doing it, and would take a bit of modifying to end the conversation.
i.e an extra counter, and load a value from an ini to say how many paragraghs are in the conversation.



 
My signature is never too big!!!

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
25th March, 2007 at 19:16:17 -

There are lots of tutorials on doing progressive text, the main problem was on having the text MOVING up out of the text box thus leaving room for new text.

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


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

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
26th March, 2007 at 03:42:39 -

Just make steps that are manageable that require button presses for long text?

I've done this

From memory I used a counter and used Left$("string", #character) then used a display object to load speech into the other one Works nicely. But you need to reset the counter/value when new text is displayed or you get instant appearing.

I can make an example if you need it

Image Edited by the Author.

 
Image
http://bfollington.tumblr.com

Eternal Man [EE]

Pitied the FOO

Registered
  18/01/2007
Points
  2955

Game of the Week WinnerHero of TimeLOL SignI am an April Fool
26th March, 2007 at 07:16:31 -

As I just mentioned, there are lots of good examples and tutorials on progressive text already, the hard part was making the text scroll upwards or downwards or whatever direction, as in Zelda 3 (and most other RPG's as well).

 
Eternal Entertainment's Code'n'Art Man

E_E = All Indie


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

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
26th March, 2007 at 08:41:23 -

Wow, thanks for all the replys guys! I gotta admit though I'm really confused now though! Even though I've been workign with TFG for years now i suppose you could still call me a n00b really, as I've always played it safe and never really ventured outside of the default platform movement etc... heh. Tutorials may help me out though so please, fire away! =D

 
Image

Tell 'em Babs is 'ere...

WillWill

Give me stuff

Registered
  24/07/2006
Points
  552
26th March, 2007 at 13:09:53 -

It can't be that hard.. Maybe with TGF though as it might not offer proper X and Y movement for all objects. To be honest I cannot remember. I'm at work so I won't start clickin' about this, but I tell you I'm positive there is a way.

 
http://www.morphboy.newgrounds.com/
^ Free tunes, as long as you contact me.

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
27th March, 2007 at 05:24:48 -

Ah... I dunno if TGF supports the Left$ expression :\ Sorry...

 
Image
http://bfollington.tumblr.com

Paul_James



Registered
  02/07/2002
Points
  1320
27th March, 2007 at 07:48:44 -

hey slink message me i have an example of progtext from DF designs - i cant post it because its not mine

 
Its not enough,I need more
Not enough to satisify
I said I dont want it, I just need it.
To believe, to feel, to know I'm alive.

Knuckle deep beneath the borderlines.
This may hurt a little but its something you'll get used to.
Relax. Slip Away...

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
27th March, 2007 at 08:09:52 -

Nope, TGF doesn't have the left$() or mid$() functions.

Image Edited by the Author.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click