Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Scratch 3.0
#2461May 6, 2017 14:34:59
- NitroCipher
- Scratcher
500+ posts
Scratch 3.0
-snip-
And here's another idea:clear [all v]clear [this sprite v]clear [other sprites v]This is a pen block
I don't know if this was suggested, but I'll leave it here
Kinda similar to this: https://scratch.mit.edu/discuss/topic/234935/
switch to canvas: [canvas1 v] ::pen //allows you to switch to a particular canvas for editing
clear [canvas1 v] ::pen //clears selected canvas (also includes options all and current)
show canvas [canvas1 v] ::pen //would display selected canvas (also includes options all and current)
hide canvas [canvas1 v] ::pen //would stop displaying selected canvas (also includes options all and current)
bring [canvas1 v] to front ::pen //would shift the selected canvas to the front(also includes options current)
move [canvas1 v] to layer (1 v) ::pen //would reorder the canvases (also includes options current)
Last edited by NitroCipher (May 6, 2017 14:35:26)
#2462May 6, 2017 15:36:25
- stickfiregames
- Scratcher
1000+ posts
Scratch 3.0
It's actually closer to this, which isn't really possible as I explained there.-snip-
And here's another idea:clear [all v]clear [this sprite v]clear [other sprites v]This is a pen block
I don't know if this was suggested, but I'll leave it here
Kinda similar to this: https://scratch.mit.edu/discuss/topic/234935/switch to canvas: [canvas1 v] ::pen //allows you to switch to a particular canvas for editing
clear [canvas1 v] ::pen //clears selected canvas (also includes options all and current)
show canvas [canvas1 v] ::pen //would display selected canvas (also includes options all and current)
hide canvas [canvas1 v] ::pen //would stop displaying selected canvas (also includes options all and current)
bring [canvas1 v] to front ::pen //would shift the selected canvas to the front(also includes options current)
move [canvas1 v] to layer (1 v) ::pen //would reorder the canvases (also includes options current)
#2463May 6, 2017 20:27:09
- thisandagain
- Forum Moderator
500+ posts
Scratch 3.0
After scratch 3.0 is finished, will it be consolidated into one github repo? Or will it continue to be in scratch-gui, scatch-vm, scratch-blocks, scratch-render, etc. ?
Good question! No. It will continue to be split into modules.
#2464May 7, 2017 13:04:49
- TastyLittleMuffin
- Scratcher
77 posts
Scratch 3.0
Perhaps this has been said, but spaces in tags are possible. They are enforced on the client.1.4 is the best version because you could have spaces in tags, plus you could have more than three of them xP only real 1.4 kids remember the waffles tag
sadly i'm not a real 1.4 kid
#2465May 8, 2017 19:53:56
- stickfiregames
- Scratcher
1000+ posts
Scratch 3.0
It's been a while since it was changed but I've just been reminded of it - what happened to these?
Were they considered too confusing?
([variable v] :: variables)
Were they considered too confusing?
#2466May 8, 2017 20:08:14
- MegaApuTurkUltra
- Scratcher
1000+ posts
Scratch 3.0
It appears “hacked” set blocks are currently possible to create directly in the editor. But I don't see a way to do a get with indirection. It's been a while since it was changed but I've just been reminded of it - what happened to these?([variable v] :: variables)
Were they considered too confusing?
thisandagain please don't make us have to continue using () of ()?
#2467May 8, 2017 20:17:13
- _nix
- Scratcher
1000+ posts
Scratch 3.0
Here's this suggestion, again:It appears “hacked” set blocks are currently possible to create directly in the editor. But I don't see a way to do a get with indirection. It's been a while since it was changed but I've just been reminded of it - what happened to these?([variable v] :: variables)
Were they considered too confusing?
thisandagain please don't make us have to continue using () of ()?
([var or prop v] of [myself v]) // note that you can drop blocks in var-or-prop, as you've always been able to
#2468May 8, 2017 20:31:54
- thisandagain
- Forum Moderator
500+ posts
Scratch 3.0
It appears “hacked” set blocks are currently possible to create directly in the editor. But I don't see a way to do a get with indirection. It's been a while since it was changed but I've just been reminded of it - what happened to these?([variable v] :: variables)
Were they considered too confusing?
thisandagain please don't make us have to continue using () of ()?
Can you expand on this a bit? I'm not 100% sure I follow (still recovering from Scratch Day).
#2469May 8, 2017 20:34:52
- MegaApuTurkUltra
- Scratcher
1000+ posts
Scratch 3.0
thisandagain please don't make us have to continue using () of ()?
Can you expand on this a bit? I'm not 100% sure I follow (still recovering from Scratch Day).
((variable-name) of [myself v])
#2470May 8, 2017 20:35:01
- stickfiregames
- Scratcher
1000+ posts
Scratch 3.0
The variable reporters in S3 used to look like thisIt appears “hacked” set blocks are currently possible to create directly in the editor. But I don't see a way to do a get with indirection. It's been a while since it was changed but I've just been reminded of it - what happened to these?([variable v] :: variables)
Were they considered too confusing?
thisandagain please don't make us have to continue using () of ()?
Can you expand on this a bit? I'm not 100% sure I follow (still recovering from Scratch Day).
with a dropdown that took a reporter, so you could read variables by name. That's been removed at some point and I was wondering what happened to them.
#2471May 8, 2017 21:46:14
- _nix
- Scratcher
1000+ posts
Scratch 3.0
By “myself” do you mean “(insert sprite name here)”, or do you mean the actual “myself” option that would select the sprite that is the caller of the block discussed here?((variable-name) of [myself v])
#2472May 9, 2017 02:35:08
- MegaApuTurkUltra
- Scratcher
1000+ posts
Scratch 3.0
whatever works for youBy “myself” do you mean “(insert sprite name here)”, or do you mean the actual “myself” option that would select the sprite that is the caller of the block discussed here?((variable-name) of [myself v])
point is, () of () is hacky and I don't like it. There needs to be a better way in Scratch 3
#2473May 9, 2017 12:20:23
- Greenduck54
- Scratcher
500+ posts
Scratch 3.0
Yeah. But it should also have an option directly saying the name of the sprite it's in. Why?whatever works for youBy “myself” do you mean “(insert sprite name here)”, or do you mean the actual “myself” option that would select the sprite that is the caller of the block discussed here?((variable-name) of [myself v])
point is, () of () is hacky and I don't like it. There needs to be a better way in Scratch 3
If I want to do this:
when I start as a cloneI have to go into another sprite/the stage, select the sprite on the block, and drag it over the sprite to use that sprite's name.
forever
if <([x position v] of [sprite1 v]) = (x position)> then // This is in sprite1
say [GET OFF OF ME!!!!!111!111!!!!!1!!!]
else
say [thanks for not stepping on me :D]
support
- Phanthomphax
- Scratcher
73 posts
Scratch 3.0
Is there going to be local storage variables for Scratch 3.0?
I suggested it in a separate topic https://scratch.mit.edu/discuss/topic/256099/
Please integrate this for Scratch 3.0
I suggested it in a separate topic https://scratch.mit.edu/discuss/topic/256099/
Please integrate this for Scratch 3.0
Last edited by Phanthomphax (May 11, 2017 14:52:22)
- Greenduck54
- Scratcher
500+ posts
Scratch 3.0
That wouldn't work.That's been suggested pretty much since clones were first introduced in 2.0 – it hasn't been implemented because there's a pretty simple workaround. Just make your sprites that get cloned have a when-I-receive that runs “delete this clone”, and use that broadcast to delete all of those sprites' clones. And also, a delete clones blockdelete all clones
This is a script that would work:
when I start as a clone//put this in every sprite
forever
if <(DeleteClones) =[1]> then
delete this clone
end
end
define delete all clones
set [DeleteClones v] to (1)
wait (0.25) secs // makes sure that clones delete themselves
set [DeleteClones v] to (0)
- Phanthomphax
- Scratcher
73 posts
Scratch 3.0
His workaround does work. This is what it looks like:That wouldn't work.That's been suggested pretty much since clones were first introduced in 2.0 – it hasn't been implemented because there's a pretty simple workaround. Just make your sprites that get cloned have a when-I-receive that runs “delete this clone”, and use that broadcast to delete all of those sprites' clones. And also, a delete clones blockdelete all clones
This is a script that would work:when I start as a clone//put this in every sprite
forever
if <(DeleteClones) =[1]> then
delete this clone
end
end
define delete all clones
set [DeleteClones v] to (1)
wait (0.25) secs // makes sure that clones delete themselves
set [DeleteClones v] to (0)
when I receive [delete clones v]Tested it and it works perfectly. But to be honest, it takes a lot of scripts for a simple clone delete rather than just one block which can do the job.
delete this clone
- Greenduck54
- Scratcher
500+ posts
Scratch 3.0
<snipped outdated explanation thing> oops I guess they must have changed it because it never used to workHis workaround does work. This is what it looks like:That wouldn't work.That's been suggested pretty much since clones were first introduced in 2.0 – it hasn't been implemented because there's a pretty simple workaround. Just make your sprites that get cloned have a when-I-receive that runs “delete this clone”, and use that broadcast to delete all of those sprites' clones. And also, a delete clones blockdelete all clones
This is a script that would work:when I start as a clone//put this in every sprite
forever
if <(DeleteClones) =[1]> then
delete this clone
end
end
define delete all clones
set [DeleteClones v] to (1)
wait (0.25) secs // makes sure that clones delete themselves
set [DeleteClones v] to (0)when I receive [delete clones v]Tested it and it works perfectly. But to be honest, it takes a lot of scripts for a simple clone delete rather than just one block which can do the job.
delete this clone
Last edited by Greenduck54 (May 11, 2017 17:24:36)
- Ed8
- Scratcher
100+ posts
Scratch 3.0
https://github.com/LLK/scratchr2How did you find it? It just gives me error 404. Hmm what is this?
Last edited by Ed8 (May 15, 2017 21:12:49)
- _nix
- Scratcher
1000+ posts
Scratch 3.0
https://github.com/LLK/scratchr2It's the source code for the Scratch 2.0 website (and, theoretically, the “old” API – that is, not Hmm what is this? the REST API, but what's used on earlier pages, such as sending comments and sharing projects).