Hi everyone,
Common method is to drag and drop a part Sprite onto another main one in order to create a PART relationship betweeen the two. Then when the main one is queried with "my parts" reporter it lists the parts in a table.
To break the PARTS relationship, one normally right clicks on a part Sprite and selects "detach from" in the menu, which only appears if a part is anchored to another Sprite.
Now here is what I have done:
I have attached two circle sprites (green and blue) to the main Turtle Sprite. And confirmed the PARTS status via the "my parts" reporter. Also when each circle Sprite is right-clicked it correctly displays the "detach from" option, as well as reports the Turtle sprite as its anchor via the "my anchor" reporter.
Now I select the main Turtle sprite and using the "my parts" reporter make it display the two circles (red and green) in a list. Since the list has controls for deleting items, I clicked on one of the "-" signs and deleted the blue circle from the list. This produced no visible effect on the sprites in the sprite corral.
However:
-
Blue sprite's "my anchor" reporter still shows the Turtle Sprite.
-
The Turtle sprite in the sprite corral still has both blue and green sprites on it, indicating the PARTS relationship is valid. Yet when the Turtle sprite is moved via commands it only moves with the Green circle attached.
-
Selecting the Turtle sprite and using its "my parts" reporter only reports the green sprite.
-
Right Clicking on the Turtle sprite in the corral and selecting "detach all parts" erases both the two blue and green circle images on the Turtle sprite. However, when the Blue sprite is selected and "my anchor" reporter is used, it still reports the Turtle as the anchor. However the Turtle sprite moves by itself without the Blue sprite.
-
I have also tried the modification of the PARTS list of the Turtle via code: "delete 2 of (my parts)" block and achieved the same result.
-
Finally, if I programmatically add the two parts to the Turtle sprite using code:
"add (object part1) to list (my parts)" and "add (object part2) to list (my parts)" both circles get added to the parts list of the Turtle and when the Turtle is moved they are moved with it. Yet neither circle part's sprite shows the Turtle as the anchor !
I know this has been a convoluted description but there it is!
I have no idea if this out of synch reporting and display is normal or a bug - I am just reporting it. However the condition created caused a lot of confusion.
Please fill out these questions for all feature requests and bug reports. If you're requesting a feature, please let us know why this feature is important or useful, not just what it should do.
Thanks!
-
What browsers show this problem?
Google Chrome
Version 77.0.3865.90 (Official Build) (64-bit) -
Please share an example project (if possible).
-
Describes the steps to reproduce this issue.
Above -
What does Snap! currently do?
Described in text above. -
What should Snap! do instead?
Provide a synched display of relationship status on the Sprite Corral images and individual sprite reporter outputs.