The Daily Click ::. Forums ::. Klik Coding Help ::. text stuff
 

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
5th July, 2004 at 11:24:13 -

I want to make a text that appears one letter at a time, and when pressing enter it moves to the next pharagraf.
So I tried this: created a text with two diffrent pharagrafs and two counters. And used this code:
- Start of level: set 'counter 2' = to 0
- Always: set alterable string = Left$( paragraph$( "String", 1 ), value( "Counter 1" ) ) this takes care of one letter at a time
- Upon pressing: 'enter' = add to 'counter 2'
- 'Counter 2' equals 0 = set pharagraf = to 1
- 'Counter 2' equals 1 = set pharagraf = to 2
(I have also tried upon pressing enter display next pharagraf)

I dont understand why this doesnt work, it only displays one pharagraf.

 
http://www.robocaptain.com

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
5th July, 2004 at 13:32:49 -

the reason why the enter thing doesnt work, is because it's always adding too many at a time: add a time event with it (every 0.10 seconds or something) or try using only one action when event loops, as that might work

 
My signature is never too big!!!

Kramy



Registered
  08/06/2002
Points
  1888
5th July, 2004 at 13:35:39 -

"paragraph$( "String", 1 )"
You've got it set to display the first paragraph.

Counter 2 = 1 // Paragraph 1
- Always: set alterable string = Left$( paragraph$( "String", Counter 2 ), value( "Counter 1" ) )

 
Kramy

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
5th July, 2004 at 16:54:30 -

kramy, that exact code does not work. I dont know how to fix it, becouse I really dont know what it means.

 
http://www.robocaptain.com

defenestrator

Old

Registered
  12/07/2003
Points
  724
5th July, 2004 at 17:13:42 -

Isn't this what the text blitter object is for?

I haven't used it much myself, but you might want to take a look at it.

 
n/a

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
5th July, 2004 at 17:17:50 -

I think there is a easy way to do this, with few codes, witout any extension, cos I rather not use any extensions.

edit: Nah never mind, I found a suollution. I had to use this code: Left$( paragraph$( "String", value( "Counter 2" ) ), value( "Counter" ) ) thanks anyways

Image Edited by the Author.

 
http://www.robocaptain.com

Kramy



Registered
  08/06/2002
Points
  1888
6th July, 2004 at 02:40:01 -

Oh yes, I'm too used to Jamagic.

 
Kramy
   

Post Reply



 



Advertisement

Worth A Click