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

Inconsistent behaviour with grow/ shrink blocks #99

Open
@jwzimmer-zz

Description

@jwzimmer-zz

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions