Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Inconsistent behaviour with grow/ shrink blocks #99

Open
jwzimmer-zz opened this issue May 20, 2016 · 1 comment
Open

Inconsistent behaviour with grow/ shrink blocks #99

jwzimmer-zz opened this issue May 20, 2016 · 1 comment
Milestone

Comments

@jwzimmer-zz
Copy link

jwzimmer-zz commented May 20, 2016

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:

  1. 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):
    out7
  2. 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:
    out6

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:
out5

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):
out4

The reset button does reset the whale to its default size:
out3

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:
out2

Here (in the project page) the size for the whale is not automatically resetting to its default size at the beginning of successive plays:
out1

@jwzimmer-zz jwzimmer-zz changed the title Inconsistent behaviour with grow block Inconsistent behaviour with grow/ shrink blocks May 20, 2016
@kaschm kaschm added this to the Backlog milestone May 31, 2016
@deepankarmalhan
Copy link
Contributor

Product backlog to figure out what aspects of characters represent home state and which don't, and then what does it mean to return to home state.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants