Discuss Scratch

k0d3rrr
Scratcher
1000+ posts

letters () to () of () block

MineCodr wrote:

+1
Why? On the Suggestions forum, it is often required to give a reason why you support or don't support a suggestion.

Kyle_Ziegler wrote:

Can you add or tell me how to add a "set letter 1 of (Variable name) to please it would be very useful to create a location to a sprite with only 1 variable.
Try posting that in Help with Scripts next time, instead of an old topic on the Suggestions forum. Thanks!

Hehehe 5th page time! >:3

Last edited by k0d3rrr (May 30, 2022 00:25:03)

k0d3rrr
Scratcher
1000+ posts

letters () to () of () block

Le bump = “The bump”
o_0
spocite
Scratcher
500+ posts

letters () to () of () block

oopsies daisies, big bump.

anyways support this would reduce lag with scripts that use (join (letter (1) of (world)) (letter 2 of (world))), and also speed up making big scripts that use them
spocite
Scratcher
500+ posts

letters () to () of () block

bump
blablablahello
Scratcher
1000+ posts

letters () to () of () block

does haave many workarounds but still annoying to ahve to spend like 10 minutes just to make the workaround
randomguy3513
Scratcher
1000+ posts

letters () to () of () block

Improved mockup
(letters () to () of [apple]:: operators)
BBcode
(letters () to () of :: operators)
spocite
Scratcher
500+ posts

letters () to () of () block

bump
ilov3gam3z
Scratcher
42 posts

letters () to () of () block

(letters () to () of :: operators)
pretty cool idea, but there are workarounds so semi-support.
spocite
Scratcher
500+ posts

letters () to () of () block

bump
spocite
Scratcher
500+ posts

letters () to () of () block

bump!!!!
spocite
Scratcher
500+ posts

letters () to () of () block

i feel like almost all active forum users have that one topic they will forever bump, and for me its this one
BUMP
CatAndAlbertaTeam
Scratcher
40 posts

letters () to () of () block

Half support and half do not support. This block could be useful for some projects because they don't need few or a lot of
(letter () of [world])
blocks. It could also be useful for some scripts like this example:
when green flag clicked
forever
if <[( letters (1) to (5) of (answer)] = [Happy]> then
switch costume to [Happy v]
else
switch costume to [Normal v]
end
But I do not support because it can be replaced by using the following code
set [report v] to []
set [count v] to (first letter)
repeat until <(count) = ((last letter) + (1))>
set [report v] to (join (report) (letter (count) of (text)))
change [count v] by (1)
end
medians
Scratcher
1000+ posts

letters () to () of () block

I did something like this:
https://scratch.mit.edu/projects/829995860 (I put the min thing for it to be easier to see and so it wouldn’t matter which order it was entered in)

randomguy3513 wrote:

Improved mockup
(letters () to () of [apple]:: operators)
BBcode
(letters () to () of :: operators)
I mean all you really did was add the operators thing and changed world to the new default for the letter and join blocks though
ninjahanzo
Scratcher
500+ posts

letters () to () of () block

bump because a scratcher made a dupe
ninjahanzo
Scratcher
500+ posts

letters () to () of () block

bump on a hump
MythosLore
Scratcher
1000+ posts

letters () to () of () block

If I was trying to find letters 3-5 of “apple”, would it report a string (“ple”), or as a list with individual letters?
medians
Scratcher
1000+ posts

letters () to () of () block

MythosLore wrote:

If I was trying to find letters 3-5 of “apple”, would it report a string (“ple”), or as a list with individual letters?
If you do it with a list, it already puts them together:

Anyway, a string hopefully.
MythosLore
Scratcher
1000+ posts

letters () to () of () block

medians wrote:

MythosLore wrote:

If I was trying to find letters 3-5 of “apple”, would it report a string (“ple”), or as a list with individual letters?
If you do it with a list, it already puts them together:
can't post this
Anyway, a string hopefully.
Yeah, never mind, for some reason I thought that it had spaces in between the characters, but I tested it in 3.0, and sure enough, there were no spaces.
medians
Scratcher
1000+ posts

letters () to () of () block

MythosLore wrote:

medians wrote:

MythosLore wrote:

If I was trying to find letters 3-5 of “apple”, would it report a string (“ple”), or as a list with individual letters?
If you do it with a list, it already puts them together:
can't post this
Anyway, a string hopefully.
Yeah, never mind, for some reason I thought that it had spaces in between the characters, but I tested it in 3.0, and sure enough, there were no spaces.
It doesn't have spaces when the items have 1 character (as in all of them)
medians
Scratcher
1000+ posts

letters () to () of () block

Bringing this topic up.

Powered by DjangoBB