Hello.
With somes scripts that I made, I'm interested by the strings in SMBX.
But, I don't know how to use it.
To example, Tetris use str(name), but me when I write str("Name")="1" to example, there is an error.
Hello.
With somes scripts that I made, I'm interested by the strings in SMBX. But, I don't know how to use it. To example, Tetris use str(name), but me when I write str("Name")="1" to example, there is an error. | ||
|
When you click the "add" button in the "variables" window, two variables are actually created: a numeric variable and a string variable.
The two variables share the same name. To use the numeric variable named "D", v(D) and val(D) are both OK. To represent the string variable named "D", you should use str(D) (not str("D")). The following code will show a message "string2". Code: Select all v(D)=2Also, the method displaying the numbers and blocks are outdated in the tetris level. We can now use txtCreate to print text and even draw pictures. | ||
Who is online (over the past 5 minutes)Users browsing this forum: 1 guest | ||