[Behavior] LiteTween

Post your completed addons to share with the community

Post » Mon Aug 19, 2013 11:10 am

Oh okay, it seems the System->Wait action makes the following tweens sequential, whereas if I disable it, they play simultaneously. So I can get the desired effect if I don't use System->Wait.

By the way, is the difference between Enforce and Compromise described somewhere?

B
3
Posts: 3
Reputation: 181

Post » Mon Aug 19, 2013 5:24 pm

@lunarray
It appears the tween is not "switching off" when it arrives its destination: I made a stress test without deleting/removing the objects after they tween and the performance drops very quickly (after 20-25 objects on screen).

I'll try to make a formal example and post it here later tonight, but it seems like you should automatically disable the tween when it ends.
B
107
S
40
G
10
Posts: 456
Reputation: 13,202

Post » Mon Aug 19, 2013 5:43 pm

[QUOTE=CreativeSpark]

By the way, is the difference between Enforce and Compromise described somewhere?

[/QUOTE] Yes, check previous pages (page 16 I think?) where he mentions the complete rewrite.
basically compromise won't trigger the tween in case of other events.
B
12
S
3
G
1
Posts: 347
Reputation: 2,866

Post » Thu Aug 22, 2013 1:32 am

@gammabeam

Could you give me capx? :o Sorry for not answering quickly. I'm on a trip for summer vacation right now, will surely look at it later on after i got back.

@CreativeSpark
I guess I'll write a summary about difference between compromise and enforce. Maybe this should be on the main post.

Compromise: It will try to automatically adjust position, angle etc, honoring other behaviour and commands. So, you can put sine and tween x and they'll work together without problem.

Enforce: It will not honor other behaviour or commands. If you put both sine and tween x together, it will not work like what you expect. There are reasons why this mode exists, but i forgot what is it :o.

If you're not sure, just use compromise. And you can download the example on the main post, there is an example there.
B
32
S
5
G
1
Posts: 178
Reputation: 3,501

Post » Thu Aug 22, 2013 5:27 pm

@lunarray
We have the profiler now! \o/
I'll have a look at those things and bug you once I can get more conclusive evidence :P
Have a nice vacation!
B
107
S
40
G
10
Posts: 456
Reputation: 13,202

Post » Sun Aug 25, 2013 4:45 am

@gammabeam

gamma, strange, I tried it with many sprites, but can't seem to reproduce the problem you said. It should be that tween automatically disables when it stops...
B
32
S
5
G
1
Posts: 178
Reputation: 3,501

Post » Mon Aug 26, 2013 2:48 pm

@Whiteclaws

Sorry I missed your post.
1. Yes, Create/Initialize will override plugin edittime settings
2. About autostart, it will not autostart, except if it is on the onCreate and you set autostart to yes. You can use start tween action just below the create/initialize to make sure it runs though.
B
32
S
5
G
1
Posts: 178
Reputation: 3,501

Post » Fri Aug 30, 2013 6:18 pm

Hi man, @lunarray
how do I completely remove the old one?
Thanks
B
12
S
3
G
1
Posts: 347
Reputation: 2,866

Post » Fri Aug 30, 2013 6:21 pm

btw, is anyone else getting empty files errors (HTML export, minified) using this plugin?

B
12
S
3
G
1
Posts: 347
Reputation: 2,866

Post » Sun Sep 01, 2013 7:49 pm

@Ashley where can I see an error log when minifying? I'm getting an empty c2runtime.js
I use litetween and canvas

thx
B
12
S
3
G
1
Posts: 347
Reputation: 2,866

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 4 guests