I think there should be a new "When" Script starter that'll allow you to restart a specified script once it has been completley stopped.
Example:
<when costume # of sprite1 = 20> -- Script Starter
<forever>
<switch to costume[
<wait( )secsc>
<switch to costume[
<wait( )secsc>
<switch to costume[
<wait( )secsc>
<forever if><key[ a ]pressed?> -- Have the script ignore this one unless the a key is pressed.
<stop script>
Something like this... or better
And then have it restart itself again if sprite1's costume # = 20
Or
A new script that'll allow you to stop the sub script but keeping the main scirpt, the "When", still running.
Offline
I'm afraid I don't fully understand how this would work
Could you create a mockup to show?
Offline
You can actually do the same thing using broadcasts!
Something like this ought to do the trick:
When I receive startscript
[INSERT SCRIPT HERE]
When green flag clicked
forever
if costume # = 20
broadcast startscript
wait until <not costume # = 20>
end if
end foreverSo, this really isn't necessary.
Offline