Discuss Scratch
- MushroomMan99
-
100+ posts
letters () to () of () block
I am suggesting a block like this
(letters (1) to (3) of [world])
- IR_pickle
-
18 posts
letters () to () of () block
Good idea! Definitely could come in handy for a word game or something.
- Deerleg
-
1000+ posts
letters () to () of () block
Yes! Though I think there's a workaround.
- MushroomMan99
-
100+ posts
letters () to () of () block
If there is a workaround please can you tell me it
- Deerleg
-
1000+ posts
letters () to () of () block
Join letter one to letter two and letter three and so on.
(Scratchblocks will not cooperate with me today.)
(Scratchblocks will not cooperate with me today.)
- Zro716
-
1000+ posts
letters () to () of () block
it's not that hard to workaround
but I support anyways
edit: fixed
define letters (a) thru (b) of [string]
set [return v] to []
set [letter v] to (a)
repeat (((b) - (a)) + (1))
set [return v] to (join (return)(letter (letter) of (string)))
change [letter v] by (1)
end
but I support anyways
edit: fixed
Last edited by Zro716 (Aug. 4, 2014 13:48:56)
- epicsandwich123
-
100+ posts
letters () to () of () block
support.
by the way thanks for supporting my topic
by the way thanks for supporting my topic
- MushroomMan99
-
100+ posts
letters () to () of () block
Thanks. That helps it's not that hard to workarounddefine letters (a) thru (b) of [string]
set [return v] to []
set [letter v] to (a)
repeat (((b) - (a)) + (1))
set [return v] to (letter (letter) of (string))
change [letter v] by (1)
end
but I support anyways
- lalala3
-
100+ posts
letters () to () of () block
it's not that hard to workarounddefine letters (a) thru (b) of [string]
set [return v] to []
set [letter v] to (a)
repeat (((b) - (a)) + (1))
set [return v] to (join (return) (letter (letter) of (string))) //Fixed
change [letter v] by (1)
end
but I support anyways
Last edited by lalala3 (Aug. 3, 2014 19:23:51)
- MushroomMan99
-
100+ posts
letters () to () of () block
How do you make a reporter out of this. What's the workaround forit's not that hard to workarounddefine letters (a) thru (b) of [string]
set [return v] to []
set [letter v] to (a)
repeat (((b) - (a)) + (1))
set [return v] to (join (return) [letter (letter) of (string)]) //Fixed
change [letter v] by (1)
end
but I support anyways
say (letters (1) to (3) of [world]) for (2) secs
- lalala3
-
100+ posts
letters () to () of () block
How do you make a reporter out of this. What's the workaround forit's not that hard to workarounddefine letters (a) thru (b) of [string]
set [return v] to []
set [letter v] to (a)
repeat (((b) - (a)) + (1))
set [return v] to (join (return) [letter (letter) of (string)]) //Fixed
change [letter v] by (1)
end
but I support anywayssay (letters (1) to (3) of [world]) for (2) secs
letters (1) to (3) of [world]Honestly, though, that's why we need custom reporter blocks in general.
say (return) for (2) secs
Last edited by lalala3 (Aug. 3, 2014 19:32:19)
- MushroomMan99
-
100+ posts
letters () to () of () block
Thanks. I used this in my project http://scratch.mit.edu/projects/25277971/How do you make a reporter out of this. What's the workaround forit's not that hard to workarounddefine letters (a) thru (b) of [string]
set [return v] to []
set [letter v] to (a)
repeat (((b) - (a)) + (1))
set [return v] to (join (return) [letter (letter) of (string)]) //Fixed
change [letter v] by (1)
end
but I support anywayssay (letters (1) to (3) of [world]) for (2) secsletters (1) to (3) of [world]Honestly, though, that's why we need custom reporter blocks in general.
say (return) for (2) secs
- Paddle2See
-
1000+ posts
letters () to () of () block
I get a bit annoyed when I see really short responses to suggestions. Simply saying you support or don't (or are indifferent - as in this case) is not really a discussion of the merits of the suggestion. Please take the time to support your opinions with some argumentsThen don't post. Indifferent.

As for the suggestion: I like to do text manipulation projects at times and I would love to have this block. Sure, there are ways to work around it - but they are not very clean. However, I also recognize that Scratch is intended to be simple to learn - and one way to keep it simple is to limit the number of blocks. So there have to be some very compelling benefits before a new block is added to the pallet.
- stickfiregames
-
1000+ posts
letters () to () of () block
Support since other programming languages can do this. Also the workaround is very slow as I noticed when I used it to make a cloud encoder.
- lalala3
-
100+ posts
letters () to () of () block
Even with the “no screen refresh” thing disabled? Wow. Support since other programming languages can do this. Also the workaround is very slow as I noticed when I used it to make a cloud encoder.
- astro-mechanic
-
500+ posts
letters () to () of () block
Ah yes, slicing. Unfortunate for the undefined behaviors here, such as invalid indexes. Will the starting index be inclusive and the ending index be exclusive, as in Python, such that end - start = length? Or will both be inclusive?
A text reverse block would go well with this.
A text reverse block would go well with this.