Discuss Scratch

zedthehedgehog
Scratcher
500+ 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)



I'm a 10-year-old programmer and animator, who really likes mints. I know Scratch, most HTML, and a little Python. I also like those iconic 80's movies and old‏‎ computers, I'm also kinda a furry. I also can do softmodding, and I recycle technology. Yeah, there is a lot about me, anyways continue with the post, 
(Road to 500 Posts! 1[#137353] 10[#137353] 20 [#137353] 30 [#137353] 50[#137353] 80[#137353] 100[#137353] 150[#137353] 200[#137353] 250[#137353] 300 [] 350[] 400[] 450[] 500:: pen)
Oh I should note that if it says {Text was here} it's deleted by me
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
500+ 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.

My cool 3d snake game (100% pen): https://scratch.mit.edu/projects/407639455
Don't be confused, it's my alternative account.
Stay save and be moist
And play stay moist 3.2!
zedthehedgehog
Scratcher
500+ 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


I'm a 10-year-old programmer and animator, who really likes mints. I know Scratch, most HTML, and a little Python. I also like those iconic 80's movies and old‏‎ computers, I'm also kinda a furry. I also can do softmodding, and I recycle technology. Yeah, there is a lot about me, anyways continue with the post, 
(Road to 500 Posts! 1[#137353] 10[#137353] 20 [#137353] 30 [#137353] 50[#137353] 80[#137353] 100[#137353] 150[#137353] 200[#137353] 250[#137353] 300 [] 350[] 400[] 450[] 500:: pen)
Oh I should note that if it says {Text was here} it's deleted by me
HTML-Fan
Scratcher
500+ 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.

My cool 3d snake game (100% pen): https://scratch.mit.edu/projects/407639455
Don't be confused, it's my alternative account.
Stay save and be moist
And play stay moist 3.2!
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.

Highlight part of my signature, press CTRL + SHIFT + DOWN ARROW KEY to see the rest of it!
Every time I open Scratch, I get blinded momentarily. We need dark mode!

A quote from Za-Chary for you mini-mods and forum helpers:

Za-Chary wrote:

And, at the very least, I would discourage others from telling people that they have “blockspammed” in the forums. If it really is spam, just use the Report button and move on. To any forum helper / mini-mod who reads this, when you come across a necropost, I'd suggest doing nothing and instead maybe reporting the topic. If there doesn't appear to be a need for the topic to remain open, ask for it to be closed within the report.I suggest that, instead of trying to respond to these users asking them not to necropost, that you just use the Report button and ask us to take it down due to spam.

I'm Mr_PenguinAlex, a person who enjoys difficult games, and sometimes doesn't include capitals or punctuation in my forum posts for no reason!
HTML-Fan
Scratcher
500+ 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?

My cool 3d snake game (100% pen): https://scratch.mit.edu/projects/407639455
Don't be confused, it's my alternative account.
Stay save and be moist
And play stay moist 3.2!
HTML-Fan
Scratcher
500+ 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/

My cool 3d snake game (100% pen): https://scratch.mit.edu/projects/407639455
Don't be confused, it's my alternative account.
Stay save and be moist
And play stay moist 3.2!
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

Coming soon, I guess? Here's a demo. (This is a signature, for any new forum users wondering)
My browser / operating system: Windows NT 10.0, Chrome 83.0.4103.116, No Flash version detected

HTML-Fan
Scratcher
500+ 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.

My cool 3d snake game (100% pen): https://scratch.mit.edu/projects/407639455
Don't be confused, it's my alternative account.
Stay save and be moist
And play stay moist 3.2!
DarthVader4Life
Scratcher
500+ 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.

y?! griffpatch is leaving :( Also, Be Moist

This Is An RPG Devs Wanted!

Voice Actors wanted.
Song Writers wanted.
Beta Testers wanted.

Click HERE to apply.
HTML-Fan
Scratcher
500+ posts

a finish unless block

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

My cool 3d snake game (100% pen): https://scratch.mit.edu/projects/407639455
Don't be confused, it's my alternative account.
Stay save and be moist
And play stay moist 3.2!
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

Gipthepig424
Ctrl+shift+down
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
500+ posts

a finish unless block

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

My cool 3d snake game (100% pen): https://scratch.mit.edu/projects/407639455
Don't be confused, it's my alternative account.
Stay save and be moist
And play stay moist 3.2!
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

Gipthepig424
Ctrl+shift+down
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
500+ 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

________________________________placeholdjaguar1501
______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
Female|10 years old|Servant to 1 cat|Splatoon, ACNH,AHIT, Pokemon|British|Capricorn|Pessimist/Realist|Heteroflexible|English Wikian


Be moist

;
HTML-Fan
Scratcher
500+ posts

a finish unless block

That's what my workaround is based on.

My cool 3d snake game (100% pen): https://scratch.mit.edu/projects/407639455
Don't be confused, it's my alternative account.
Stay save and be moist
And play stay moist 3.2!
DarthVader4Life
Scratcher
500+ 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.

y?! griffpatch is leaving :( Also, Be Moist

This Is An RPG Devs Wanted!

Voice Actors wanted.
Song Writers wanted.
Beta Testers wanted.

Click HERE to apply.
HTML-Fan
Scratcher
500+ posts

a finish unless block

Okay, my workaround does exactly that.

My cool 3d snake game (100% pen): https://scratch.mit.edu/projects/407639455
Don't be confused, it's my alternative account.
Stay save and be moist
And play stay moist 3.2!
jaguar1501
Scratcher
500+ 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)


________________________________placeholdjaguar1501
______________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
Female|10 years old|Servant to 1 cat|Splatoon, ACNH,AHIT, Pokemon|British|Capricorn|Pessimist/Realist|Heteroflexible|English Wikian


Be moist

;

Powered by DjangoBB

Standard | Mobile