Skip to content
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

Add animations support #48

Open
NathV opened this issue Aug 19, 2017 · 10 comments
Open

Add animations support #48

NathV opened this issue Aug 19, 2017 · 10 comments

Comments

@NathV
Copy link

NathV commented Aug 19, 2017

This program has a cocos2d.js file for creating a .plist spritesheet file, but what about animations ?

We can add new defaultFormats or an "Auto-detect Animation" option (sprites ending with a number will be grouped in animations in the data file) as in TexturePacker.

@amakaseev
Copy link
Owner

Now there is only a preview of animation :(
Possibly in this window to make animation control (speed of playing and others)
And to use these data for publish in Cocos2D and Json?

I don't know as TexturePacker keeps animation, it will be necessary to look from where it takes settings

@NathV
Copy link
Author

NathV commented Aug 20, 2017

We can do this it if we want the user to have control over the options.
We can also do like TexturePacker, and add an "Auto-detect animations" option in spritesDockWidget, if this option is checked, the exporter will detect the sprite frames that start with the same name and end with a different number, and group them together in <array>, like here ---> https://pastebin.com/W5CViZ55. The problem with this method is that the user have less control, he can't set <delay> for example.

What do you think will be better ?

@amakaseev
Copy link
Owner

I think better to combine two ways

  • automatic or manual definition of animation
  • editing settings of each animation

@amakaseev
Copy link
Owner

TexturePacker keeps only spritesheet, without animation, even with included 'Auto-detect animation'

@NathV
Copy link
Author

NathV commented Aug 21, 2017

Yes i was wrong, they use a "getAnimation" method with cocos2d-x : https://www.codeandweb.com/texturepacker/tutorials/animations-and-spritesheets-in-cocos2d-x

@amakaseev
Copy link
Owner

I have already begun to expand animation preview dialog for creation of animation
possibly it will be useful

@NathV
Copy link
Author

NathV commented Sep 1, 2017

I am working on it to


@amakaseev
Copy link
Owner

please look at the last changes
I already have almost made everything, it was necessary to make only save and publish

@amakaseev
Copy link
Owner

screenshot 2017-09-01 21 26 19

@amakaseev
Copy link
Owner

amakaseev commented Sep 1, 2017

if you have a desire to expand the editor of animation and to add publishing, would be remarkable.
unfortunately I have not a lot of free time as it would be desirable :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants