[Behavior] LiteTween

Post your completed addons to share with the community

Post » Mon Jan 13, 2014 7:16 pm

Is this behavior built to support multiple tween behaviors on the same object? I've used that method without issue except that when one tween ends, it fires the On End event for all tween behaviors.

Example:
http://storage.wertle.com/construct2/DoubleTween.capx

I have two different tween behaviors on the object, PositionTween and ScaleTween, but when PositionTween ends, the On ScaleTween end event fires.

Is this a bug or should I just only be using one tween behavior per object? Thanks!

Edit: Fixed the linkWertle2014-01-15 01:07:34
B
9
S
2
Posts: 87
Reputation: 1,051

Post » Tue Jan 14, 2014 10:34 am

@Wertle

I can't download that example, the link is broken :(

I just tested it here, and it can call the right onEnd event on each behavior though, are you sure that is the latest tween you are using?

onEnd Testlunarray2014-01-14 10:36:15
B
33
S
6
G
1
Posts: 180
Reputation: 3,630

Post » Tue Jan 14, 2014 10:39 am

@part12studios

The apple example, I lost the original apple demo capx but this one should be close to what you need

Apple capx
B
33
S
6
G
1
Posts: 180
Reputation: 3,630

Post » Wed Jan 15, 2014 1:11 am

@lunarray

I updated the plugin and it now works as expected, I guess I had an older version than I realized. Thanks!
B
9
S
2
Posts: 87
Reputation: 1,051

Post » Wed Jan 15, 2014 3:12 pm

I had made Tween2Effect behavior to pass the tween value into effect. It could extend the usage of tween behavior.
B
97
S
22
G
178
Posts: 4,120
Reputation: 104,047

Post » Sat Jan 18, 2014 3:06 am

@lunarray

Hello!
I have found a bug in the "Create/Initalize Tween" dialog box.
(Parameters for ..... )

The Target text box has wrong variable type attached to it. I tried to add target value: 100,100 but got to reply it is error, it needs to be STRING it said... So it is impossible to use. I even tried to add 100, 100 in quotes but it won't help much.

Thank you. Love litetween otherwise.
B
48
S
13
G
4
Posts: 349
Reputation: 5,494

Post » Sat Jan 18, 2014 7:39 am

@rexrainbow
Wow, that's such a nice behaviour/plugin, I didn't know that a behavior could be programmed to co-work with another behavior. It could open up to many possibilities. May I put the link to your behaviour's thread on the main post? I'll give proper credit and such :)

@helena
I tried that action here, and it is working for me. Can you try downloading this simple example and tell me if this one works for you?

Create-Initialize Tween capxlunarray2014-01-18 07:40:11
B
33
S
6
G
1
Posts: 180
Reputation: 3,630

Post » Sat Jan 18, 2014 8:00 am

@lunarray

This code could get instance of other behavior.
This code could call set parameter of effect.
B
97
S
22
G
178
Posts: 4,120
Reputation: 104,047

Post » Sun Jan 19, 2014 2:05 am

@lunarray, your capx works. I see your have put the value in quotes. I will try again with that. Thanks.
B
48
S
13
G
4
Posts: 349
Reputation: 5,494

Post » Sun Jan 19, 2014 4:46 am

It works, it was probably that particular event I tried to do that was faulty. It works now as I am using initialize tween for other purpose.
B
48
S
13
G
4
Posts: 349
Reputation: 5,494

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: matriax and 0 guests