jmoenig / Snap

a visual programming language inspired by Scratch
http://snap.berkeley.edu
GNU Affero General Public License v3.0
1.5k stars 745 forks source link

How to know about other sprites in Snap? #1376

Open introlinux opened 8 years ago

introlinux commented 8 years ago

How to know in Snap the position or dimensions of other sprites in the stage? I think in BYOB there was more blocks in sensing category for these tasks.

towerofnix commented 8 years ago

Sure, there still is:

See the sensing category. Note that the dropdown items such as "x position" will only appear after you've selected a sprite.

cycomachead commented 8 years ago

Thanks, Liam!

There will be additional functions soon, but that's the standard way for now.

introlinux commented 8 years ago

@liam4 , I already tried that block, but always got a white dropdown, I didn't try dropdown first the name of the sprite. Thanks.

introlinux commented 8 years ago

@cycomachead , this behavior is not intuitive and is annoying when you try reuse a block including variables because the dropdown items dissapear and you have to build again from the beginning.

brianharvey commented 8 years ago

You mean if there's a variable in the right input slot? I agree, it's not clear what should then appear in the left slot, but I would propose that unless the right input selects a specific constant object, the left pulldown should include all the standard attributes of all supported primitive object types (maybe in a hierarchical menu in which the top level is object types (stage, sprite, costume, etc).