Discussions

SmileBASIC Community

ClaytonDarkClay88

08/23/2016 3:56 PM ·Spoilers

Open Closed

Need help with Type$

How do I use the type$ string? Like how do I make it so the text types it out.

Advertisement

Comment

This post has no comments.

  • 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$

    Yeahs1
    Played
  • Sorry that it isn't clear. I meant, how do you make the text type letters one by one?

    Yeahs0
    Played
  • 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

    Yeahs1
    Played
  • How would I make it type what I want? Do I do: (whatever string I do)$ "Hello world!"?

    Yeahs0
    Played
  • What do you mean? You define the string however you want. STRING$ = "Hello World" Then use that string how Oscar showed.

    Yeahs0
    Played
  • 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.

    Yeahs0
    Played
  • All I know, is that it has something to do with a string.

    Yeahs0
    Played
  • G.

    08/24/2016 2:17 PM ·Spoilers

    Like this.

    Yeahs1
    Played
  • Thank you G.! :)

    Yeahs1
    Played

Add a Comment

You must sign in to post a comment.

Sign in using a Nintendo Network ID to connect to users around the world by writing posts and comments and by giving Yeahs to other people's posts. You can create a Nintendo Network ID using your Wii U console or your system in the Nintendo 3DS family.

Use of Miiverse Details about Miiverse

Report Violation to Miiverse Administrators

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Post ID: 3DB-NBL7-EJ9-9E2D-EVT-YGKN

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: