[Behavior] LiteTween

Post your completed addons to share with the community

Post » Tue Jul 14, 2015 1:36 am

@Bodhran:

Can you give me simple capx demonstrating the problem? I will fix it.

Edit: Uh, nevermind that one, I re-fixed it, it reverted back to some version some time when i got HDD failure and i started working from the wrong version afterward. Sorry for the late reply, was busy these days. Download on the first page as usual :>.
B
32
S
5
G
1
Posts: 178
Reputation: 3,501

Post » Tue Jul 14, 2015 7:00 am

Thanks so much. I really appreciate it.

I really like your behavior. There is a small problem that happens randomly after leaving a layout with enemies that tween then coming back and making them tween then they will become too big. I made a code to correct their scale when they do it but you can still see the enemies try to scale up.

Whenever your not busy then maybe you could look into it but it isn't anything that needs to be fixed right away.
B
7
S
2
Posts: 56
Reputation: 644

Post » Tue Jul 14, 2015 3:25 pm

Hello World,

This might have been asked before, but I'll be honest with you, I don't feel like going through 40 pages of posts....
How would I go about randomizing with this behavior?
For example lets say that I want event "on tween end" action "set easing to" and then randomly pick from one of the other easings. It seems I can randomize the duration and target and stuff like that, but is there a way to randomize the easing it chooses next?

Thank you.
B
20
S
10
G
6
Posts: 404
Reputation: 5,190

Post » Wed Jul 22, 2015 4:21 am

If you want the object with the litetween behavior to do 2 different things at once, eg: move AND rotate, is that possible? or do you have to add the behavior twice (one for each type of move)?

also what's the best way to use it if you want moves to play out once after each other. eg: move THEN rotate
B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Wed Jul 22, 2015 4:54 am

You need the behaviour twice, then "On end" of one, Start the other. Although in this case one would do, you would just switch all of the parameters to the "other" settings.
ImageImageImage
B
67
S
19
G
121
Posts: 3,200
Reputation: 72,887

Post » Sat Aug 01, 2015 3:35 pm

hello,

i'm having a problem actually using LiteTween,

i'm asking a sprite to move from Y:587 (outside layout) to Y:325
Active on start: No
i'm using Vertical
Function: EaseOutBounce
Target:325
Mode Absolute
Duration 2
Enforce Mode Enforce

my problem is that it can sometimes work if i set it to 1 sec, or if i change function, it can goes completly crazy and do shit...
this sprite is followed by a second sprite wich must act the same way.

it has work correctly 1 time or 2 with some parameters, but after changing duration to 2 sec, or tryed different function, the sprite goes crazy again and bounce uncorrectly
B
14
S
2
Posts: 95
Reputation: 1,086

Post » Sat Aug 01, 2015 4:32 pm

i made also some basic tests outside my project to find the error,

make a simple scene with one sprite (on wich you may add wrap behavior) + 1button

in the event:
when button is clicked, start tween

maybe i'm wrong and didn't understanded correctly the pdf, but Absolute coordonate should well pose the sprite in coordinate 100,100 in absolute, so if i ask a second time to move to 100,100 and the sprite is alreayd there, it should not move, right ?

because actually the sprite is moving a first time to 100,100 and a second time to elsewhere following the same direction. but will not stop in 100,100 like espected

and it's the same for vertical, horizontal.

EaseInElastic doesn't replace the sprite at the good position
B
14
S
2
Posts: 95
Reputation: 1,086

Post » Thu Aug 13, 2015 5:40 pm

Made a new plugin folder for it, but gets an error on loading C2:
"Unable to load plugin in......."
"Found 'GetPluginSettings' global, but is not a function"
"This plugin will not be available in the editor."

Halp?
Image
B
13
S
4
Posts: 132
Reputation: 1,876

Post » Thu Aug 13, 2015 5:47 pm

@janlindso Drag the folder to the Behaviours folder, not Plugins.
ImageImageImage
B
67
S
19
G
121
Posts: 3,200
Reputation: 72,887

Post » Mon Aug 24, 2015 6:45 am

Love this behaviors; unbelievable time saver. I'm experiencing one small issue which I'm sure is my fault, but I can't seem to figure it out.

I have a sprite with 3 litetweens (not active on start, position, target x&y specific to each, absolute, compromise). I'm basically shuffling all 3 of them back and forth, thinking it should go between all 3 targets, but for some reason it seems to be adding a "relativity" to it and pushing it further to the right beyond it's absolute target (ie, if litetween1 plays, then 2, then 1 again, it doesn't actually go back to the 1 location). Am I doing something wrong?
B
22
S
3
Posts: 451
Reputation: 2,135

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest