[Behavior] LiteTween

Post your completed addons to share with the community

Post » Fri Mar 04, 2016 9:30 am

@blackhornet Ah i see, works in Firefox. What's up with this adBlock making trouble with dropbox links lately.. Weird..

Anyways gonna try the plugin :)!

Edit: This is awesome! Works like a charm :) Exactly what i needed. Thanks!

Edit 2: Just came back to say this is awesome again. This really is freaking amazing! If i only knew before this behavior existed! This is really a game changer and i can finally fine-tune my app to a nice looking piece of art :).
B
10
S
4
G
3
Posts: 163
Reputation: 2,507

Post » Fri Mar 04, 2016 8:15 pm

lunarray wrote:@resdesign

Left button click fire for all overlapping sprite, in this case when you click on intro, the help below are clicked also eventhough it is being obscured by the intro. That is why both event fired up. You have to keep track of the current state of the UI and handle only the click accordingly.



Do you mean I need to add a variable and check it?
B
5
Posts: 15
Reputation: 255

Post » Sat Mar 05, 2016 12:52 am

@resdesign

Adding variable is one of the best and recommended way to do it (tracking state), or you can use LiteTween's progress state as a trick too.
This is one simple example using LiteTween progress state. I wouldn't recommend using it for a more complex screen flow where you have branches, etc though.

https://dl.dropboxusercontent.com/u/553 ... tween.capx

If you want to do it with the proper way, it is better to use a state machine, or a variable to track that state. But that example works for simpler cases.
B
32
S
5
G
1
Posts: 178
Reputation: 3,501

Post » Tue Mar 08, 2016 1:13 pm

lunarray wrote:@Coin-coin le Canapin

I don't have time to test it yet, but i have a guess about it. Maybe it happened when the first angle is a bigger number than the target angle. For example, tweening from 245 to 15? It is better to add 360 to the 15 if the target value is bigger from the source value. Could you test it and tell me how it goes?

Hi :)
Using blackhornet's method, the value decreases correctly from big to low values, so if my sprite is at 359° and I click so it is 1°, litetween goes from 359 to 1 instead taking the shortest path.
B
12
S
7
G
7
Posts: 446
Reputation: 4,268

Post » Thu Mar 24, 2016 12:59 pm

Is there any way to get the progress of tween in system expression?
B
20
S
8
G
3
Posts: 112
Reputation: 3,615

Post » Fri Mar 25, 2016 12:38 am

@Herks

You can use Sprite.LiteTween.Progress expression for that.
B
32
S
5
G
1
Posts: 178
Reputation: 3,501

Post » Fri Mar 25, 2016 10:20 am

lunarray wrote:@Herks

You can use Sprite.LiteTween.Progress expression for that.


Thanks, that's just what I needed.
B
20
S
8
G
3
Posts: 112
Reputation: 3,615

Post » Wed Apr 06, 2016 2:34 am

Awesome plugin.

Just one question, every new layout the setting of behavior always change to the default, so when i have many layout i need to setting up one by one. Can we just setup one layout and other layout will keep setting?

EDIT: I got it. Just solved the problem. Thank you
B
35
S
12
G
1
Posts: 85
Reputation: 2,965

Post » Tue Apr 12, 2016 6:16 pm

How do I install this? When I unzip it's a bunch of "JscriptScript" files. Tried copying those to the construct 2 folder and didn't seem to do anything
B
22
S
8
G
3
Posts: 192
Reputation: 3,562

Post » Tue Apr 12, 2016 6:50 pm

You drag the whole lunarray.litetween folder to the C2 behaviours directory (similar to all of the other behaviours there).
ImageImageImage
B
67
S
19
G
122
Posts: 3,201
Reputation: 73,389

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 5 guests