spritemate icon indicating copy to clipboard operation
spritemate copied to clipboard

Sprites are not renamed when duplicated; export reflects this also

Open dagershman opened this issue 3 years ago • 6 comments

I created a single multi-color sprite and duplicated it several times to alter as needed. As I hover over each sprite, the name is still "sprite_0":

https://user-images.githubusercontent.com/32991459/117088850-8228fd00-ad08-11eb-863f-87a9250fb7d9.mp4

When I save the file to any of the Assembler options, all the labels reflect this as well:

pic

dagershman avatar May 05 '21 01:05 dagershman

Thank you for the issue report - and great sprites by the way, love them! I will look into this once I got more time. Or better, submit a PR if you can.

Esshahn avatar May 05 '21 17:05 Esshahn

I would submit a PR, but I'm not a Javascript coder so I'd probably do more damage than good. :) I'll happily wait for the pro!

dagershman avatar May 07 '21 01:05 dagershman

Let's wait for the pro then :D (I consider myself a noob also haha)

Esshahn avatar May 07 '21 07:05 Esshahn

@dagershman, note that the file comments iterate the sprites by numbers

// sprite_0

whereas the sprite name could be any string, e.g.

penguin_left_one

I assumed that when generating a copy of a sprite, it would be manually renamed (like when generating a copy of a file in a OS). However, operating systems add suffixes to copied files, like

penguin_left_one_copy(1)

Do you consider this useful to implement (would be a quick change)? I'm leaning towards less use, as probably few devs would not want to change the sprite name to something more meaningful, e.g.

penguin_left_two

Would appreciate your thoughts. Cheers!

Esshahn avatar May 07 '21 07:05 Esshahn