Skip to content

Sensing Of block can show "backdrop # of sprite" in the blocks pallet #2144

@BryceLTaylor

Description

@BryceLTaylor

Expected Behavior

the sensing of block should only be able to show backdrop #s of the stage and costume #s of sprites.

Actual Behavior

In the blocks pallet, when the stage is selected in the right hand dropdown of the sensing "of" block you can set the left hand dropdown to backdrop #. Then, if you change the right hand dropdown to a sprite it does not update the left side dropdown.

Screen Shot 2020-10-07 at 4 59 35 PM

Similarly, you can select a sprite in the right hand dropdown and then set the left hand dropdown to costume # and then switch the right hand menu to the stage. This shows "costume # of stage."

Screen Shot 2020-10-07 at 4 59 49 PM

You can also get other mismatches like this, like x position of stage, etc.

You can then drag these incorrect blocks into the workspace.
Screen Shot 2020-10-07 at 5 02 16 PM

It's worth mentioning that if you change the right side of that block while it's on the workspace the left side updates to an acceptable option immediately. That is the correct behavior.

Steps to Reproduce

Create a project
Add a second sprite to the project (doesn't matter how)
scroll the blocks pallet to the sensing category
Set the right side of the "_ of " block to the stage
set the left side of the "
of " block to say "backdrop #
set the right side of the "
of _" block to the other sprite
note: it doesn't update the block so it shows legitimate options
drag the block onto the workspace
note: it appears on the workspace

You can set these blocks in the workspace to a number of incorrect versions of the blocks

Operating System and Browser

Mac Chrome

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions