Discuss Scratch

mybearworld
Scratcher
1000+ posts

split blocks

Interesting idea.
First I thought that could only be used for getting the decimal points
(number) - (round (number))
But after your listings, I see that there is a workaround, but it's complicated.
So, I support.

Vract0
Scratcher
100+ posts

split blocks

Should I make a project with a custom block that acts like that operator?
mitdk
Scratcher
1000+ posts

split blocks

Vract0 wrote:

Should I make a project with a custom block that acts like that operator?
You could but..

mybearworld wrote:

Interesting idea.
First I thought that could only be used for getting the decimal points
(number) - (round (number))
But after your listings, I see that there is a workaround, but it's complicated.
So, I support.

like mybearworld said the workaround is rather complicated and even harder when making multiple sections.

Last edited by mitdk (Sept. 28, 2020 15:27:58)

mitdk
Scratcher
1000+ posts

split blocks

Plus, it just doesn't make sense(at least to me) to have join but not split
mitdk
Scratcher
1000+ posts

split blocks

Oh, yes, this could also be used for a user input of coordinates to get the x and y.
when green flag clicked
ask [Give me x and y with a comma] and wait
set [ num v] to (answer)
set [x v] to (section(1) of split(num) on character[,]::operators)
set [y v] to (section(2) of split(num) on character[,]::operators)

Last edited by mitdk (Oct. 1, 2020 18:40:25)

mitdk
Scratcher
1000+ posts

split blocks

sportfan999 wrote:

It may seem a little complicated to beginning Scratchers. Sorry, but no support. I may support it if the block name was easier to read.
do you think my suggestion for simplifying helps?

mitdk wrote:

sportfan999 wrote:

It may seem a little complicated to beginning Scratchers. Sorry, but no support. I may support it if the block name was easier to read.
or maybe it would make more sense with some fillers in the block menu?
(section(1) of split[apple, banana] on character[,]::operators)

Last edited by mitdk (Oct. 1, 2020 18:09:31)

mitdk
Scratcher
1000+ posts

split blocks

If you look at this and think this suggestion is the same as this,
(section( v) of split[] on character()::operators)


Here is the difference.
(section( v) of split[] on character()::operators)
this block would be used like this:
(section(1 v) of split[a2b2c4jjj] on character(4)::operators)
output would be:
a2b
for my block:
(section(1) of split[a2b2c4jjj] on character[4]::operators)
output would be:
a2b2c
This is because on my block it is asking for the character to split on, not the character number.

Last edited by mitdk (Oct. 1, 2020 18:41:05)

mitdk
Scratcher
1000+ posts

split blocks

ChewingFruitGum wrote:

woah thats just very confusing haha lol XD
Does that mean no support?
MartianSoil
Scratcher
100+ posts

split blocks

I support this because it would make cloud multiplayer just a bit easier to make.
You could do things with this as a feature such as this:
(section(1) of split(☁ player 1) on character[4]::operators)

mitdk
Scratcher
1000+ posts

split blocks

MartianSoil wrote:

I support this because it would make cloud multiplayer just a bit easier to make.
You could do things with this as a feature such as this:
(section(1) of split(☁ player 1) on character[4]::operators)

By character 4, do you mean character #4 or the character ‘4’
because i stated the difference on another post

mitdk wrote:

If you look at this and think this suggestion is the same as this,
(section( v) of split[] on character()::operators)


Here is the difference.
(section( v) of split[] on character()::operators)
this block would be used like this:
(section(1 v) of split[a2b2c4jjj] on character(4)::operators)
output would be:
a2b
for my block:
(section(1) of split[a2b2c4jjj] on character[4]::operators)
output would be:
a2b2c
This is because on my block it is asking for the character to split on, not the character number.

Last edited by mitdk (Oct. 1, 2020 20:50:30)

mitdk
Scratcher
1000+ posts

split blocks


MartianSoil wrote:

I support this because it would make cloud multiplayer just a bit easier to make.
You could do things with this as a feature such as this:
(section(1) of split(☁ player 1) on character[4]::operators)

But you are right, it can be used like this:
when green flag clicked
forever
encode(something)::custom
repeat (length of (var))


set [score v] to (join (score) (letter (counter::variables) of (var))
if <(length of (score)) = [256]> then
set [score v] to (join (score) [,])
end
end
set [☁ score v] to (section(1) of split(score::variables) on character[,]::operators)
set [☁ score2 v] to (section(2) of split(score::variables) on character[,]::operators)

end

Last edited by mitdk (Oct. 5, 2020 18:10:25)

Vibrato
Scratcher
1000+ posts

split blocks

bump
mitdk
Scratcher
1000+ posts

split blocks

(section() of split() on character()::operators)
The reason i did not include this in my suggestion is because i was pretty sure it would be a duplicate

Last edited by mitdk (Oct. 5, 2020 18:12:57)

MartianSoil
Scratcher
100+ posts

split blocks

mitdk wrote:

MartianSoil wrote:

I support this because it would make cloud multiplayer just a bit easier to make.
You could do things with this as a feature such as this:
(section(1) of split(☁ player 1) on character[4]::operators)

By character 4, do you mean character #4 or the character ‘4’
because i stated the difference on another post

mitdk wrote:

If you look at this and think this suggestion is the same as this,
(section( v) of split[] on character()::operators)


Here is the difference.
(section( v) of split[] on character()::operators)
this block would be used like this:
(section(1 v) of split[a2b2c4jjj] on character(4)::operators)
output would be:
a2b
for my block:
(section(1) of split[a2b2c4jjj] on character[4]::operators)
output would be:
a2b2c
This is because on my block it is asking for the character to split on, not the character number.


I mostly just meant that the 4 could be whatever; I just put 4 because I didn’t know which number to put.
mitdk
Scratcher
1000+ posts

split blocks

MartianSoil wrote:

mitdk wrote:

MartianSoil wrote:

I support this because it would make cloud multiplayer just a bit easier to make.
You could do things with this as a feature such as this:
(section(1) of split(☁ player 1) on character[4]::operators)

By character 4, do you mean character #4 or the character ‘4’
because i stated the difference on another post

mitdk wrote:

If you look at this and think this suggestion is the same as this,
(section( v) of split[] on character()::operators)


Here is the difference.
(section( v) of split[] on character()::operators)
this block would be used like this:
(section(1 v) of split[a2b2c4jjj] on character(4)::operators)
output would be:
a2b
for my block:
(section(1) of split[a2b2c4jjj] on character[4]::operators)
output would be:
a2b2c
This is because on my block it is asking for the character to split on, not the character number.


I mostly just meant that the 4 could be whatever; I just put 4 because I didn’t know which number to put.
Oh, OK. wanted to make sure i did not get a false support.
MeIzAwezomeDede
Scratcher
1000+ posts

split blocks

Support! There have been multiple scenarios where this would've been helpful. I've been able to work-around them everytime, but as stated above, it's super complicated and takes up too much space.
p-p-p-p-p-p-p-p-p-p-
Scratcher
1000+ posts

split blocks

mitdk
Scratcher
1000+ posts

split blocks

p-p-p-p-p-p-p-p-p-p- wrote:

I think dupe?
Maybe… but i do think that this has more replies(sorry if i have got this logic wrong, please correct me if i did) and things are still more or less in one place(which is the reason dupes are shut down).

Last edited by mitdk (Oct. 10, 2020 18:52:35)

cwkavery46304
Scratcher
29 posts

split blocks

wow
support!
we need splitting!
1. text engines
2. i have no idea
ThatOneWeirdDude
Scratcher
1000+ posts

split blocks

Powered by DjangoBB