Discuss Scratch

zedthehedgehog
Scratcher
1000+ posts

a finish unless block

ItsRainingScratchcat wrote:

Workaround:

when green flag clicked
forever
if <touching [ v] ?> then
stop [the invader creepers v]
end
end
No, the OP is different. There isn't a workaround, and it isn't a loop.
Edit: new page, wow

Last edited by zedthehedgehog (June 30, 2020 12:09:41)


highlight + ctrl/ + shift + down | my website: zed2345.com | cool collab: meower | vividly visual vector art shop: the vvv | notice: I've left scratch, so I won't respond







RwPrajHsX7hhePpPzgaY1G4HSyGqO9kOb0sG6F/aKB+7gTqVdb/nNGaYnwZPV0zT somerandomcharactersthatwillbepickedupbysearchengines RwPrajHsX7hhePpPzgaY1G4HSyGqO9kOb0sG6F/aKB+7gTqVdb/nNGaYnwZPV0zT somerandomcharactersthatwillbepickedupbysearchengines RwPrajHsX7hhePpPzgaY1G4HSyGqO9kOb0sG6F/aKB+7gTqVdb/nNGaYnwZPV0zT ellipsepostpianolizard ellipsepostpianolizard somerandomcharactersthatwillbepickedupbysearchengines ellipsepostpianolizard ellipsepostpianolizard ellipsepostpianolizard RwPrajHsX7hhePpPzgaY1G4HSyGqO9kOb0sG6F/aKB+7gTqVdb/nNGaYnwZPV0zT ellipsepostpianolizard ellipsepostpianolizard ellipsepostpianolizard ellipsepostpianolizard ellipsepostpianolizard somerandomcharactersthatwillbepickedupbysearchengines somerandomcharactersthatwillbepickedupbysearchengines somerandomcharactersthatwillbepickedupbysearchengines somerandomcharactersthatwillbepickedupbysearchengines
ItsRainingScratchcat
Scratcher
100+ posts

a finish unless block

Uhh,

forever

end

You are forgetting the forever block.

Click here to stop the cringevirus!
I make more cringe than anybody else!
But why? Because cringe will stop the cringevirus.
So come check my profile! I can't stop the cringevirus myself xD
HTML-Fan
Scratcher
1000+ posts

a finish unless block

zedthehedgehog wrote:

There isn't a workaround, and it isn't a loop.
But it shouldn't be a loop.

Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
zedthehedgehog
Scratcher
1000+ posts

a finish unless block

HTML-Fan wrote:

zedthehedgehog wrote:

There isn't a workaround, and it isn't a loop.
But it shouldn't be a loop.
Exactly

highlight + ctrl/ + shift + down | my website: zed2345.com | cool collab: meower | vividly visual vector art shop: the vvv | notice: I've left scratch, so I won't respond







RwPrajHsX7hhePpPzgaY1G4HSyGqO9kOb0sG6F/aKB+7gTqVdb/nNGaYnwZPV0zT somerandomcharactersthatwillbepickedupbysearchengines RwPrajHsX7hhePpPzgaY1G4HSyGqO9kOb0sG6F/aKB+7gTqVdb/nNGaYnwZPV0zT somerandomcharactersthatwillbepickedupbysearchengines RwPrajHsX7hhePpPzgaY1G4HSyGqO9kOb0sG6F/aKB+7gTqVdb/nNGaYnwZPV0zT ellipsepostpianolizard ellipsepostpianolizard somerandomcharactersthatwillbepickedupbysearchengines ellipsepostpianolizard ellipsepostpianolizard ellipsepostpianolizard RwPrajHsX7hhePpPzgaY1G4HSyGqO9kOb0sG6F/aKB+7gTqVdb/nNGaYnwZPV0zT ellipsepostpianolizard ellipsepostpianolizard ellipsepostpianolizard ellipsepostpianolizard ellipsepostpianolizard somerandomcharactersthatwillbepickedupbysearchengines somerandomcharactersthatwillbepickedupbysearchengines somerandomcharactersthatwillbepickedupbysearchengines somerandomcharactersthatwillbepickedupbysearchengines
HTML-Fan
Scratcher
1000+ posts

a finish unless block

#228 works! I tell you, I can see what a simple code does without running it. Sometimes I miss something, but this time it works. Why is this even still a discussion? That's the perfect workaround, more or less.

Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
Mr_PenguinAlex
Scratcher
1000+ posts

a finish unless block

HTML-Fan wrote:

#228 works! I tell you, I can see what a simple code does without running it. Sometimes I miss something, but this time it works. Why is this even still a discussion? That's the perfect workaround, more or less.
It's still a discussion because there's a workaround for almost every single block that is in Scratch.

HTML-Fan
Scratcher
1000+ posts

a finish unless block

But why is there still a discussion about a workaround? Why does the creator says that it doesn't work?

Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
HTML-Fan
Scratcher
1000+ posts

a finish unless block

So, here's #228, just a little bit improved with a variable, as I said: https://scratch.mit.edu/projects/408656650/

Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
da-maker
Scratcher
100+ posts

a finish unless block

Although this point was already mentioned before by whiteandblackcat at #221, I feel the need to restate it. The thing with the main workarounds is that they not only stop the intended script, but any other that are still running. While you could hook up another message to continue it, it can be hard to figure out what point the message should start at.

As an example, if I were to add this script below into your project, I could also stop it at any time since the workaround halts every other script, and finding the point I stopped at to restart the script might be a bit difficult due to the repeat loops. Of course, it runs fine if the condition is never met as the “stop other scripts in sprite” is never activated.

when green flag clicked // Refer to above.
repeat (10)
move (10) steps
wait (0.5) secs
end
repeat (40)
next costume
wait (0.25) secs
end
forever
play sound [pop v]
wait (0.125) secs
end

This is a signature, for any new forum users wondering. I find this topic rather interesting.

[color=#aaa][i]Last edited by kaj (Tomorrow 00:00:00)[/i][/color]
HTML-Fan
Scratcher
1000+ posts

a finish unless block

You can just make a sepatare sprite for this. And that's the reason why I want the stop script x block so hard: Other stops are just not precise.

Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
DarthVader4Life
Scratcher
1000+ posts

a finish unless block

HTML-Fan wrote:

You can just make a sepatare sprite for this. And that's the reason why I want the stop script x block so hard: Other stops are just not precise.
have you read post 222? if not that should clear things up pretty well. and your workarounds don't do what the OP wants. however, i took a look at you stop script x suggestion and if it were to be added, it would make for a way better working workaround.

Be Moist Also, here's a helpful link to Ocular
I am DV4L, Erector of Text Walls, Typer of Long Posts, Creator of Mini-mod posts
The kumquats have eaten this line, so I have to have a new way to repel them.
Had a bad day or are feeling bored? Watch this to make your day better in an interesting way.
Do you think you've been banned unfairly? Then you'd be wrong. The ST aren't children, so quit acting like they are.
HTML-Fan
Scratcher
1000+ posts

a finish unless block

You say #222? Well, there's nothing really related to this.

Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
Gipthepig424
Scratcher
500+ posts

a finish unless block

A workaround could be that you do a variable, and set it to something when the certain action is true, then do if (variable) = (Number) then

Check out my new Game
Flood Escape v1.0
I worked quite a bit of time on it. Use the arrow keys to progress upwards to escape the rising flood and try to escape the cave. Please consider playing it! Ctrl+shift+down to see the rest of my signature












Gipthepig424

Friends:
 wam_clap :: #57BCFF
 mimicyu455:: #FF925B 
Lord_of_Fish :: #1F87FF
MoosyNinja :: #280B78
 Pawored0o :: sensing 
BBCode
This is my signature… Luckily, an evil kumquat has not eaten it. Thanks to some of the guards
<<Bob the evil kumquat guard :: #787374 ?>  <Roger the other guard :: #0A0A0A>> :: #631700
I am Gipthepig424.
This is my signature.
So…. what are you doing here?
Meh
I will just say some things…
I guess…
So…
My favourite color is Lime green
My favourite animal is a Pig
My posts:
(Posts:0 [] [] [] [] [] [] [] [] [] [ v] [ v] [ v] [ v] [ v] [ v] [ v] [ v] [ v] [ v] [ v] [ v] 1000)
( each [] means 50 posts, the first one being 0 < each [ v] means not completed yet
I will add more soon…
I guess…
See you…
Have a great day…









































































































































Why did you waste your time doing that?
HTML-Fan
Scratcher
1000+ posts

a finish unless block

Well, here's my workaround: https://scratch.mit.edu/projects/408656650/
It works, so …

Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
Gipthepig424
Scratcher
500+ posts

a finish unless block

But, semi-support as this could be kind of useful for new scratchers and can help with scripts

Check out my new Game
Flood Escape v1.0
I worked quite a bit of time on it. Use the arrow keys to progress upwards to escape the rising flood and try to escape the cave. Please consider playing it! Ctrl+shift+down to see the rest of my signature












Gipthepig424

Friends:
 wam_clap :: #57BCFF
 mimicyu455:: #FF925B 
Lord_of_Fish :: #1F87FF
MoosyNinja :: #280B78
 Pawored0o :: sensing 
BBCode
This is my signature… Luckily, an evil kumquat has not eaten it. Thanks to some of the guards
<<Bob the evil kumquat guard :: #787374 ?>  <Roger the other guard :: #0A0A0A>> :: #631700
I am Gipthepig424.
This is my signature.
So…. what are you doing here?
Meh
I will just say some things…
I guess…
So…
My favourite color is Lime green
My favourite animal is a Pig
My posts:
(Posts:0 [] [] [] [] [] [] [] [] [] [ v] [ v] [ v] [ v] [ v] [ v] [ v] [ v] [ v] [ v] [ v] [ v] 1000)
( each [] means 50 posts, the first one being 0 < each [ v] means not completed yet
I will add more soon…
I guess…
See you…
Have a great day…









































































































































Why did you waste your time doing that?
jaguar1501
Scratcher
1000+ posts

a finish unless block

hotdogbananaman wrote:

Maximouse wrote:

hotdogbananaman wrote:

Maximouse wrote:

hotdogbananaman wrote:

HTML-Fan wrote:

It is!
So, do I understand you right? You just need
repeat until <condition :: grey>

end
? In that case, it's your lucky day, the block exists.
IT IS NOT A LOOP!
So it's like this?
stop when <> {

} :: control
then go to the thing under it
OK. So if I write this code
stop when <touching [mouse-pointer v]?> {
wait (1) seconds :: control
} :: control
say [Hi!]
it would say “Hi!” when either 1 second passes or you move mouse over the sprite?
yes but what if you had more text in the script, normaly it would not do it but with this
finish unless <[monkeys] = [3]>
set [dogs v] to [7]
set [monkeys v] to [3]
set [oof v] to [2]
end
ask [] and wait
(amagine it looking like reapet until but saying finish unless)
it would skip the off and then go to asking
Ohh, I get it now! Thanks for clarifying

I moved!
Check out my new account!
HTML-Fan
Scratcher
1000+ posts

a finish unless block

That's what my workaround is based on.

Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
DarthVader4Life
Scratcher
1000+ posts

a finish unless block

HTML-Fan wrote:

You say #222? Well, there's nothing really related to this.
It's what the suggested block does.

Be Moist Also, here's a helpful link to Ocular
I am DV4L, Erector of Text Walls, Typer of Long Posts, Creator of Mini-mod posts
The kumquats have eaten this line, so I have to have a new way to repel them.
Had a bad day or are feeling bored? Watch this to make your day better in an interesting way.
Do you think you've been banned unfairly? Then you'd be wrong. The ST aren't children, so quit acting like they are.
HTML-Fan
Scratcher
1000+ posts

a finish unless block

Okay, my workaround does exactly that.

Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
jaguar1501
Scratcher
1000+ posts

a finish unless block

zedthehedgehog wrote:

whiteandblackcat wrote:

Secondly, please stop just posting “ because it doesn't add anything to the conversation. It's frowned upon here, in the same way that just saying ”support“ or ”no support" is. If you don't have anything else to add, you don't need to post..
That's a ditto mark.

Google Dictionary wrote:

dit·to
/ˈdidō/
noun
  • the same thing again (used in lists and accounts and often indicated by a ditto mark under the word or figure to be repeated).
Yes, but it's unconstructive and frowned upon in the forums. Saying ‘I agree’ ‘doesn’t add anything to the discussion, same as saying just ‘Support’, or just ‘No Support’, without a reason.

Last edited by jaguar1501 (June 30, 2020 15:59:53)


I moved!
Check out my new account!

Powered by DjangoBB