Discuss Scratch
- edward789121
-
500+ posts
New sound block maybe?
If you can, click “add to backpack” next to the below code:
define play sound [sound]
play sound (sound)
set [sound v] to (sound)
define play sound [sound] until done
play sound (sound) until done
set [sound v] to (sound)
- geekygirlepicness101
-
22 posts
New sound block maybe?
well we can use it like this I don't see how that would be useful, but neither did I see how the sensing blocks would be useful until I started using them. I support this suggestion.
play sound [next sound v]im not sure if i did it right
Last edited by geekygirlepicness101 (July 28, 2016 05:32:47)
- ZZ9PluralZAlpha
-
1000+ posts
New sound block maybe?
If you're talking about the sound # block, then I'm not sure why you're suddenly asking that. Ok I found some time today but I found that this may not be really helpful for this thread.
Where would we need that block really?
However, if you're talking about something else, could you please make it clearer to me as I'm not sure what you're asking about.
- ZZ9PluralZAlpha
-
1000+ posts
New sound block maybe?
The whole point of this blockwell we can use it like this I don't see how that would be useful, but neither did I see how the sensing blocks would be useful until I started using them. I support this suggestion.play sound [next sound v]im not sure if i did it right
(sound # :: sound)is so that you can use it like this:-
if <(sound # :: sound) = [2]> then
broadcast [message 1 v]
else
broadcast [message 2 v]
end
so the block
play sound [next sound v]wouldn't work in that situation.
Last edited by ZZ9PluralZAlpha (July 28, 2016 13:13:12)
- ZZ9PluralZAlpha
-
1000+ posts
New sound block maybe?
Because the sound # block I refer to and actually came up with will report the last sound played by the sprite it is being used in.The whole point of this blockwell we can use it like this I don't see how that would be useful, but neither did I see how the sensing blocks would be useful until I started using them. I support this suggestion.play sound [next sound v]im not sure if i did it right(sound # :: sound)is so that you can use it like this:-if <(sound # :: sound) = [2]> then
broadcast [message 1 v]
else
broadcast [message 2 v]
end
so the blockplay sound [next sound v]wouldn't work in that situation.
- pvz_pro
-
500+ posts
New sound block maybe?
no support, has easy workaround
(sound)//new var
set [sound v] to [sound #]
play sound [sound v] until done
- ZZ9PluralZAlpha
-
1000+ posts
New sound block maybe?
WHAT????!!!! The whole point of my new block is so that you don't need a variable! It saves you making one therefore saves you time! no support, has easy workaround(sound)//new var
set [sound v] to [sound #]
play sound [sound v] until done
Your script in your post is wrong anyway because it would look like this:-
when green flag clickedSo even there, you need my sound # block.
forever
set [The sound # variable you talk about v] to (Sound # :: sound) // MY SOUND # BLOCK!!!!
end
- ZZ9PluralZAlpha
-
1000+ posts
New sound block maybe?
In your post, you mentioned this no support, has easy workaround(sound)//new var
set [sound v] to [sound #]
play sound [sound v] until done
set [sound v] to [sound #]So when you wanted to know the value of your variable, it would report
(sound # :: variables)as the value of the variable.
You should have this
set [sound v] to (sound # :: sound) // My sound # block will report the number of the last sound played to the variableinstead of this
set [sound v] to [sound #] // Here, the variable won't be set to the number of the last sound played, but to "sound #"
Last edited by ZZ9PluralZAlpha (July 28, 2016 16:48:43)
- DimensionPvP
-
100+ posts
New sound block maybe?
Support even though there is some kind of workaround.
When you start to play a sound:
But still, support.
When you start to play a sound:
set [sound # v] to [The number on the thing]
play sound [pop v]
if <(sound #) = [2]> then
say [ya watevs]
end
But still, support.
- ZZ9PluralZAlpha
-
1000+ posts
New sound block maybe?
Can we submit these ideas to the Scratch Team so they can tell us if it can be included in an update?
- Benur21
-
100+ posts
New sound block maybe?
I don't think much they will ever add something, but you can still try it. Can we submit these ideas to the Scratch Team so they can tell us if it can be included in an update?
- LP_Play
-
1000+ posts
New sound block maybe?
No support;
when I receive [message1 v]Doing this with different variables and different broadcasts will allow for a workaround.
set [sound? v] to [true]
play sound [sound v] until done
set [sound? v] to [false]
- pvz_pro
-
500+ posts
New sound block maybe?
I meant something like thisIn your post, you mentioned this no support, has easy workaround(sound)//new var
set [sound v] to [sound #]
play sound [sound v] until doneset [sound v] to [sound #]So when you wanted to know the value of your variable, it would report(sound # :: variables)as the value of the variable.
You should have thisset [sound v] to (sound # :: sound) // My sound # block will report the number of the last sound played to the variableinstead of thisset [sound v] to [sound #] // Here, the variable won't be set to the number of the last sound played, but to "sound #"
set [sound v] to [1]
play sound [THIS IS SOUND ONE (don't use all caps) v]
I don't really need it because of the easy workaroundWHAT????!!!! The whole point of my new block is so that you don't need a variable! It saves you making one therefore saves you time! no support, has easy workaround(sound)//new var
set [sound v] to [sound #]
play sound [sound v] until done
Your script in your post is wrong anyway because it would look like this:-when green flag clickedSo even there, you need my sound # block.
forever
set [The sound # variable you talk about v] to (Sound # :: sound) // MY SOUND # BLOCK!!!!
end
- ZZ9PluralZAlpha
-
1000+ posts
New sound block maybe?
I'm trying to save you having to make variables and it reports back the number of the last sound played, not just true or false. No support;when I receive [message1 v]Doing this with different variables and different broadcasts will allow for a workaround.
set [sound? v] to [true]
play sound [sound v] until done
set [sound? v] to [false]
- ZZ9PluralZAlpha
-
1000+ posts
New sound block maybe?
Oh, that makes sense now.I meant something like thisIn your post, you mentioned this no support, has easy workaround(sound)//new var
set [sound v] to [sound #]
play sound [sound v] until doneset [sound v] to [sound #]So when you wanted to know the value of your variable, it would report(sound # :: variables)as the value of the variable.
You should have thisset [sound v] to (sound # :: sound) // My sound # block will report the number of the last sound played to the variableinstead of thisset [sound v] to [sound #] // Here, the variable won't be set to the number of the last sound played, but to "sound #"set [sound v] to [1]
play sound [THIS IS SOUND ONE (don't use all caps) v]I don't really need it because of the easy workaroundWHAT????!!!! The whole point of my new block is so that you don't need a variable! It saves you making one therefore saves you time! no support, has easy workaround(sound)//new var
set [sound v] to [sound #]
play sound [sound v] until done
Your script in your post is wrong anyway because it would look like this:-when green flag clickedSo even there, you need my sound # block.
forever
set [The sound # variable you talk about v] to (Sound # :: sound) // MY SOUND # BLOCK!!!!
end
- ZZ9PluralZAlpha
-
1000+ posts
New sound block maybe?
How do I do it? I've never seen anyone do it so I'm not sure what to do.I don't think much they will ever add something, but you can still try it. Can we submit these ideas to the Scratch Team so they can tell us if it can be included in an update?
- Sheep_maker
-
1000+ posts
New sound block maybe?
Well since they aren't working on 2.0 anymore this is probably the best time to do so before 3.0 gets finished.I don't think much they will ever add something, but you can still try it. Can we submit these ideas to the Scratch Team so they can tell us if it can be included in an update?
- ZZ9PluralZAlpha
-
1000+ posts
New sound block maybe?
Do you know how to submit this idea to the Scratch Team because at the moment it is just on this forum.Well since they aren't working on 2.0 anymore this is probably the best time to do so before 3.0 gets finished.I don't think much they will ever add something, but you can still try it. Can we submit these ideas to the Scratch Team so they can tell us if it can be included in an update?
Last edited by ZZ9PluralZAlpha (July 29, 2016 09:57:22)
- DownsGameClub
-
1000+ posts
New sound block maybe?
That is not going to work out. It would just make the blocking system much more complicated than it really needs to be.Then sound # will be “1 2” like when you change a variable to a list: What if 2 sounds were playing at once?when green flag clicked
play sound [looong music v]
play sound [looong music2 v]
set [variable v] to (sound #::sound)
LIST
1 (hello)
2 (world)when green flag clickedVariable will show “hello world” separated by spaces.
set [Variable v] to (LIST :: list)
I will support on the
(Sound # :: sound)block, with its function as reporting the last sound that started playing. However, the term still seems a bit ambiguous. Can we think of another name that isn't as long as “Last sound # Played”? Lets keep it simple here.
Last edited by DownsGameClub (July 29, 2016 11:23:17)
- ZZ9PluralZAlpha
-
1000+ posts
New sound block maybe?
In sensing,That is not going to work out. It would just make the blocking system much more complicated than it really needs to be.Then sound # will be “1 2” like when you change a variable to a list: What if 2 sounds were playing at once?when green flag clicked
play sound [looong music v]
play sound [looong music2 v]
set [variable v] to (sound #::sound)
LIST
1 (hello)
2 (world)when green flag clickedVariable will show “hello world” separated by spaces.
set [Variable v] to (LIST :: list)
I will support on the(Sound # :: sound)block, with its function as reporting the last sound that started playing. However, the term still seems a bit ambiguous. Can we think of another name that isn't as long as “Last sound # Played”? Lets keep it simple here.
(sound # :: sound)might look like this:-
([sound # v] of [Sprite1 v])So that makes it a bit simpler anyway.