Return to Cocos2dx Playback Library

what does Tags::TagDefineAnimationFrames2 mean in cocos lib?

Questions related to Cocos2dx playback library should be asked here.

what does Tags::TagDefineAnimationFrames2 mean in cocos lib?

Postby pb g » May 9th, 2017, 4:08 am

Hi, i'm using gaf as my flash player in my games, its really very good, however, i have a few questions, hope someone can help me
1. I am wondering what is Tags::TagDefineAnimationFrames2 in cocos2dx playback library? What's the difference between Tags::TagDefineAnimationFrames2 and Tags::TagDefineAnimationFrames ?
2. How can i make a Tags::TagDefineAnimationFrames2 or Tags::TagDefineAnimationFrames or Tags::TagDefineTimeline in Flash pro cs6?
thanx
User avatar
pb g
 
Posts: 4
Joined: November 29th, 2016, 1:52 am

Re: what does Tags::TagDefineAnimationFrames2 mean in cocos

Postby Dmitry Bushtets » May 9th, 2017, 4:25 am

Hello
This is internal classes, used to parse GAF file.
They will be automatically created by converter. No additional moves required

Kind regards,
Dmitry
User avatar
Dmitry Bushtets
 
Posts: 83
Joined: August 11th, 2014, 1:31 am

Re: what does Tags::TagDefineAnimationFrames2 mean in cocos

Postby pb g » May 9th, 2017, 5:00 am

Dmitry Bushtets wrote:Hello
This is internal classes, used to parse GAF file.
They will be automatically created by converter. No additional moves required

Kind regards,
Dmitry


thank u very much for ur quick answer, Dmitry, I have another question, say i have 3 minutes long animation, but sometimes i just need part of the animation, for example, the first 3 seconds of the animation. Can i just create the first 3 seconds of the animation by using the 3 minutes gaf file? cuz it takes a long time to create a 3 minutes animation through gaf file.
best wishes!
pb, g
User avatar
pb g
 
Posts: 4
Joined: November 29th, 2016, 1:52 am

Re: what does Tags::TagDefineAnimationFrames2 mean in cocos

Postby Dmitry Bushtets » May 9th, 2017, 6:00 am

I hope that I correctly understood your issue.

Maybe you can add sequences(labels) in flash and then use
Code: Select all
bool GAFObject::playSequence(const std::string& name, bool looped, bool resume /*= true*/)
User avatar
Dmitry Bushtets
 
Posts: 83
Joined: August 11th, 2014, 1:31 am

Re: what does Tags::TagDefineAnimationFrames2 mean in cocos

Postby pb g » May 9th, 2017, 5:44 pm

Dmitry Bushtets wrote:I hope that I correctly understood your issue.

Maybe you can add sequences(labels) in flash and then use
Code: Select all
bool GAFObject::playSequence(const std::string& name, bool looped, bool resume /*= true*/)


I think I did not express my idea clearly. I mean the funcition below takes several seconds to complete, because the number of frames is too large. Could I just the create the frames I need, for example, the first 10 frames.
static GAFAsset* create(const std::string& gafFilePath);

thanx
pb g
User avatar
pb g
 
Posts: 4
Joined: November 29th, 2016, 1:52 am

Re: what does Tags::TagDefineAnimationFrames2 mean in cocos

Postby Dmitry Bushtets » May 9th, 2017, 11:17 pm

Ok, I see
In fact, you can't affect on loading sequence.
We are usually using async load of GAFAssets
User avatar
Dmitry Bushtets
 
Posts: 83
Joined: August 11th, 2014, 1:31 am

Re: what does Tags::TagDefineAnimationFrames2 mean in cocos

Postby pb g » May 10th, 2017, 6:11 pm

Dmitry Bushtets wrote:Ok, I see
In fact, you can't affect on loading sequence.
We are usually using async load of GAFAssets


OK, thx
User avatar
pb g
 
Posts: 4
Joined: November 29th, 2016, 1:52 am

Return to Cocos2dx Playback Library

Who is online

Users browsing this forum: No registered users and 2 guests