Repeat until blocks ignore the stop script until it gets to the end of what it's doing. So if you were doing 'wait 2 seconds, change to costume1, wait 2 seconds, change to costume 2', it would keep doing that until it ended AND the stop script was true. I think the 'repeat until' blocks should stop what the inside script is as soon as the stop script is true.
Offline
Harakou wrote:
I've tested this, and the 'stop all' block stops a 'repeat until' script in the middle.
What if you wanted for the script to continue on? Say if there was some scripting afterwords that you wanted it to complete?
And, if you wanted it to stop immediately, and it was in the middle of a 2-second-glide or something, it might mess up the stuff afterwords.
I have to use 'stop script' blocks, which is rather annoying, as the script doesn't do what is afterwords (because it has stopped).
And also, wouldn't it be 'stop script' blocks? Stop all would stop everything...
Offline
I don't find any problem with the current method... I prefer the current one, actually.
Offline
Shadowed1 wrote:
Harakou wrote:
I've tested this, and the 'stop all' block stops a 'repeat until' script in the middle.
What if you wanted for the script to continue on? Say if there was some scripting afterwords that you wanted it to complete?
And, if you wanted it to stop immediately, and it was in the middle of a 2-second-glide or something, it might mess up the stuff afterwords.
I have to use 'stop script' blocks, which is rather annoying, as the script doesn't do what is afterwords (because it has stopped).
And also, wouldn't it be 'stop script' blocks? Stop all would stop everything...
Well, the glide block is a completely different story. The glide block is always like that, because it's one action. That has nothing to do with the repeat block. And you seem to be lobbying for a block that would cause the script that immediately exits the loop and moves on to the rest of the script. That would be a good idea.
Offline
Not a bad idea! Perhaps the "stop script" should wait until the loop is completely finished, and "stop loop" will stop it right in the middle.
Offline