-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Match 2.0 sprite drag and drop behavior #161
Comments
In 2.0, if the pen is down and you drag the sprite, it does not draw pen lines (in both editor and player modes). Currently in the 3.0 GUI, if the pen is down and you drag it does draw pen lines. It's worth considering changes to the 2.0 behavior, but we probably will want to mimic it. |
Reported via internal playtest 3/3/17: currently, you can click and drag sprites but not clones. |
Layering of sprites In 2.0, you can drag a sprite to reorder it's layer/ z-position relative to the sprites around it. In 2.0, dragging it moves it to the front/ top layer. In 3.0, this doesn't seem to happen. It looks like the layer order is just the order that the sprite was added (for new sprites) or the order they were in in 2.0 (for imported projects). It is convenient to be able to reorder the sprites by dragging them around rather than always using the back/ forward blocks, but on the other hand, being able to tweak the positioning of the sprites without then being forced to re-order them is kind of nice (in 3.0). So, I'm not sure which behaviour we prefer. |
A simple "send to front" context menu item could work; but the only workaround for that on mobile devices would be to use the "go to front" menu item.. |
I would actually prefer a context menu item to do this - this could be annoying in the case of an unintentional drag (eg. testing project in editor mode, clicked sprite, accidentally entered drag, z order of sprites is now wrong) To address the issue of touch displays, send to front and send to back could be included as icons in the menu bar (see Scratch 2.0 menu bar icons) |
I'm going to close this and open a new "needs-discussion" item for the layering-via-drag |
Signed-off-by: SparrowHe <[email protected]>
While in player mode:
While in editor mode
The dragged sprite should have a drop shadow
Sprite on stage should be hidden while being dragged
Blocks other than motion blocks should continue running Paul: This isn't quite right. Because the sprite is snapshotted, looks blocks also have no effect in 2.0, but the blocks do continue to run. I'm going to mark this as "correct in 3.0" because it does appear to be the same as 2.0
The dragged sprite should be a snapshot of the sprite at the time it was picked up
If the sprite is dropped outside of the stage, the sprite should return to the position it was picked up from
If the sprite is dropped inside the stage, its position should be updated to the new position
The sprite's X and Y values should be clamped to values within the stage during the drag. Paul: Not exactly. The XY values are not updated during the drag at all, so there is no clamping to be done. This is different from 2.0 where the XY actually is updated during the editor drag, although there are some bugs because of that (see comment below).
2.0 Weirdness
While in player mode
While in editor mode
The text was updated successfully, but these errors were encountered: