トピック
Clayton DarkClay88

Need help with Type$

How do I use the type$ string? Like how do I make it so the text types it out.
4そうだね
プレイ済み
返信[1]
親投稿
Oscar PwnageBlock
What do you mean exactly? If you want to declare strings, you just append a dollar sign to the variable identifier. E.g.: ST$ is a string. If you want to print it, simply use PRINT <String Variable>. E.g.: PRINT ST$
1そうだね
プレイ済み
返信[2]
親投稿
Clayton DarkClay88
Sorry that it isn't clear. I meant, how do you make the text type letters one by one?
0そうだね
プレイ済み
返信[3]
親投稿
Oscar PwnageBlock
Well, that's really simple to implement. You just have to remember that a string is really just a string of individual characters. You could have a FOR loop that iterates over the string and prints each character. E.g.: FOR I=0 TO LEN(ST$)-1 PRINT ST$[I]; WAIT 20 NEXT
1そうだね
プレイ済み
返信[4]
親投稿
Clayton DarkClay88
How would I make it type what I want? Do I do: (whatever string I do)$ "Hello world!"?
0そうだね
プレイ済み
返信[5]
親投稿
Aaron Krondelo
What do you mean? You define the string however you want. STRING$ = "Hello World" Then use that string how Oscar showed.
0そうだね
プレイ済み
返信[6]
親投稿
Clayton DarkClay88
Ok, here's what I want to know. How do I make it so the text types one letter at a time, like I do PRINT "Hello World" And if you run it types out the phrase one letter at a time so it looks like its typing it out for you.
0そうだね
プレイ済み
返信[7]
親投稿
Clayton DarkClay88
All I know, is that it has something to do with a string.
0そうだね
プレイ済み
返信[8]
親投稿
G. GioStiv2004
Like this.
1そうだね
プレイ済み
返信[9]
親投稿
Clayton DarkClay88
Thank you G.! :)
1そうだね
プレイ済み