scratchfoundation / scratchfoundation/scratch-blocks

Accept reporters in property field of sensing_of block

Open
#1,418 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
JavaScript
Stars
2.8k
Forks
1.6k
Avg merge
4h 51m
Merged PRs (30d)
12

Description

I had a PR for this in scratch-flash (LLK/scratch-flash#1250) that was closed due to it being put on maintenance mode. I'd like to restart that discussion here for Scratch 3.0

Proposal

Accept reporters to be dropped on the PROPERTY field of the "sensing_of" block
image

Argument

For the same reasons a user might want to programmatically define the sprite you'd like to access in the OBJECT field, it is similarly useful to programmatically define the PROPERTY you'd like to access. From the perspective of the VM, this behavior should be 100% backwards-compatible with scratch 2.0 projects (it's already possible with manual editing of your project file)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the sensing_of block implementation and the PROPERTY field handling in scratch-blocks. Review the prior scratch-flash discussion for context, then trace how reporters are accepted in comparable fields. Done means reporters can be dropped on PROPERTY while existing Scratch 2.0 project behavior remains compatible.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.