They would go around all the blocks to the right , interrupting a certain part of the program and jumping over another.
Offline
This isn't very clear...
Do you mean:
A block which would jump to another part of the same script?
Kind of like the GOTO command in BASIC
Last edited by boinoinoi (2009-04-05 14:13:50)
Offline
Oh you mean like the basic command. I dunno, that may mess up some people's code.
Offline
I don't see how a GOTO block would work by itself...you would need some means of identifying the target, a label of some sort. I wouldn't recommend adding this feature anyway...it tends to lead to very unstructured and hard to read programs.
What we could use, though, would be some way to break out of the middle of loops!
Offline
Paddle2See wrote:
I don't see how a GOTO block would work by itself...you would need some means of identifying the target, a label of some sort. I wouldn't recommend adding this feature anyway...it tends to lead to very unstructured and hard to read programs.
What we could use, though, would be some way to break out of the middle of loops!
Like [blocks]<stop script>[/blocks], except it only stops the current loop, skipping to whatever's below it?
EDIT: Heh heh, 500th post
Last edited by technoguyx (2009-04-05 14:55:30)
Offline
boinoinoi wrote:
This isn't very clear...
Do you mean:
A block which would jump to another part of the same script?
Kind of like the GOTO command in BASIC
Yeah, sorta. There would be two parts to it, and it could jump to any part of any script in a sprite.
Offline
It is a bad idea. GOTO just makes programs messier and harder to read.
Offline
Paddle2See wrote:
What we could use, though, would be some way to break out of the middle of loops!
YESSSS!!!!!!!!!!!!!!!!!!!!! i find myself putting this script in between every action in the loop.
<if> <(<{ Stop? }> <=>1)>
<stop script>
<end>
i suggest a block that is like a "forever if ____" block but it says at the top "forever, but stop when ____"
Offline
Dibbo222 wrote:
Paddle2See wrote:
What we could use, though, would be some way to break out of the middle of loops!
YESSSS!!!!!!!!!!!!!!!!!!!!! i find myself putting this script in between every action in the loop.
<if> <(<{ Stop? }> <=>1)>
<stop script>
<end>
i suggest a block that is like a "forever if ____" block but it says at the top "forever, but stop when ____"
<repeat until>
<end>[/blocks]
I think that works well.
Offline
GOTO would not work. It would mess me up in Scratch ! Oh yea, if any one saw my two last posts somewhere, it was my stupid anger at the door. I sprained my ankle so ya...
Offline