Skip to content

Conversation

@mybearworld
Copy link
Contributor

Resolves #8272

Changes

Adds a new addon that ensures that sprite duplicates are always positioned next to the original sprite

Reason for changes

Convenience

Tests

Tested in MS Edge

@WorldLanguages
Copy link
Member

@mybearworld Did you try duplicating the currently selected sprite? It's not working properly in that case on my device

@mybearworld
Copy link
Contributor Author

Did you try duplicating the currently selected sprite? It's not working properly in that case on my device

It seems to work fine for me. Is there any specific project that that doesn't work on?

@WorldLanguages
Copy link
Member

When I go to https://scratch.mit.edu/projects/104/editor/ and duplicate "girl", girl2 is created as the last sprite

@mybearworld
Copy link
Contributor Author

When I go to https://scratch.mit.edu/projects/104/editor/ and duplicate "girl", girl2 is created as the last sprite

I can't replicate this, on Edge at least

@mybearworld
Copy link
Contributor Author

For me the addon didn't work on Firefox either. I'm not sure why, but adding addon.tab.traps.vm.emitTargetsUpdate() before reordering the target seems to fix this – @WorldLanguages does this fix it for you too?

@Samq64 Samq64 added type: enhancement New feature for the project new addon Related to new addons to this extension. `scope: addons` should still be added. scope: addon Related to one or multiple addons labels Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new addon Related to new addons to this extension. `scope: addons` should still be added. scope: addon Related to one or multiple addons type: enhancement New feature for the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicating a sprite doesn't bring the copy to bottom of the sprites list

3 participants