You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.
There seems to be some inconsistent behaviour with the grow block.
Consistency with other block behaviour:
With rotation/ orientation and with location, we don't re-set the character to its original starting position if you successively run the same script. For example, if you have a script that moves the Scratch Cat 10 steps to the left, if you run the script three times, Scratch Cat will end up 30 steps from its initial location.
With the grow block, should it behave like rotation/ orientation and location? Should whatever final state the size is in at the end of one script be the start state for the size for the next script run?
Is there a max size a character can grow to, relative to the screen or relative to the total number of grows it underwent? (I ask because as shown in the gifs below, sometimes the whale character doesn't grow at all, even though the script includes grow blocks - I thought perhaps the explanation for this could be that the whale was hitting the max-allowed-size?) If there is a max size, should the character stop growing when it hits the max? Or reset to its original size and continue growing from that size?
Consistency with behaviour within the grow/ shrink block(s):
As shown in the gifs below, in full-screen the whale was always starting from the same default size, regardless of the state it was left in by the last script run. However, in project page view, the whale's initial state in successive script runs was based on the final state of the last run.
At a certain minimum and maximum size, the grow/ shrink blocks don't seem to have any effect.
Here are two successive runs of this script:
In the first run, the cat grows with each grow block in each repeat (4 total "hi" bubbles, and each one demonstrates the increased character size by its location):
In the second run, the cat grows only with the first two repetitions, then it stops growing, although the 4 total "hi" bubbles show that the repeat block did execute the interior script 4 times:
Running the script several times in a row, at first the whale will shrink more and more with each time you run the script, but when it gets to this size, as shown, it stops shrinking even if you run the script:
Once the whale gets to a large enough size, it doesn't keep growing in successive plays (but it also doesn't re-set to its default size; it just doesn't change size):
The reset button does reset the whale to its default size:
Here in full-screen mode the size for the whale is resetting to its default size in between successive plays, even though the script does not include the reset button:
Here (in the project page) the size for the whale is not automatically resetting to its default size at the beginning of successive plays:
The text was updated successfully, but these errors were encountered:
jwzimmer-zz
changed the title
Inconsistent behaviour with grow block
Inconsistent behaviour with grow/ shrink blocks
May 20, 2016
There seems to be some inconsistent behaviour with the grow block.
Consistency with other block behaviour:
Consistency with behaviour within the grow/ shrink block(s):
Here are two successive runs of this script:
Running the script several times in a row, at first the whale will shrink more and more with each time you run the script, but when it gets to this size, as shown, it stops shrinking even if you run the script:
Once the whale gets to a large enough size, it doesn't keep growing in successive plays (but it also doesn't re-set to its default size; it just doesn't change size):
The reset button does reset the whale to its default size:
Here in full-screen mode the size for the whale is resetting to its default size in between successive plays, even though the script does not include the reset button:
Here (in the project page) the size for the whale is not automatically resetting to its default size at the beginning of successive plays:
The text was updated successfully, but these errors were encountered: