[Behavior] LiteTween

Post your completed addons to share with the community

Post » Thu Nov 21, 2013 7:18 pm

Great stuff! Does anyone tried it with node webkit exporter?
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Thu Nov 21, 2013 7:29 pm

A quick test with node-webkit preview option tells me that this plugin works flawlessly with nw export. 10/10, would test again.
Be nice until it's time to not be nice
B
36
S
9
G
9
Posts: 293
Reputation: 6,652

Post » Thu Nov 21, 2013 8:48 pm

As a confirmation yes LiteTween works with NodeWebkit. We use Lite Tween for the tutorial.

I would link the torrent of our game, but that's a shameless plug.... nm
https://www.facebook.com/notes/the-blue-code/download-the-game/600706366632639

We use Litetween and Litetween rocks. Let it be known Lunarray rocks :)
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Sat Nov 23, 2013 1:26 am

Hi, could you add in 'Tweened Property' the X and Y properties, so we can manipulate them separately. That's because using the "position" to handle only the X, messes in Y too.
Thanks
B
5
S
2
Posts: 10
Reputation: 691

Post » Sat Nov 23, 2013 9:31 am

@marcelokohl

It can be done by setting the target property to "400, 0" (to tween only x, 400 pixel right) and setting the target mode to relative.

If you want to tween only Y, 100 pixel up, you can set target property to "0, -100" and set the target mode to relative.

If you need absolute coordinate (i.e: move sprite to Y: 340, regardless of current Y), that would be a little trickier. You can use this in the event sheet:

Event: On Sprite created
Action: Set Target, target is Y (Absolute), and set value to 340
Action: Set Target, target is X (Relative), and set value to 0

However, I think I will reconsider adding that 'only X' and 'only Y' to tweened property, along with ping pong play mode due to alot of demand.lunarray2013-11-23 09:34:19
B
32
S
5
G
1
Posts: 178
Reputation: 3,501

Post » Sat Nov 23, 2013 11:01 am

@marcelokohl

Added Ping Pong and Horizontal/Vertical tween, please redownload the behaviour.

EDIT: Forgot to upload the updated behaviour, for those who already download and found out that it is actually the same as the older one, please redownload...lunarray2013-11-23 11:35:10
B
32
S
5
G
1
Posts: 178
Reputation: 3,501

Post » Sun Dec 01, 2013 9:12 pm

Thank you for the explanation, @lunarray.
B
5
S
2
Posts: 10
Reputation: 691

Post » Wed Dec 04, 2013 3:19 am

Small fix, added loop mode and added some notes on first post about position tween to clear some confusion. (some people thinks it's a bug)
B
32
S
5
G
1
Posts: 178
Reputation: 3,501

Post » Sun Jan 12, 2014 6:40 pm

Looking at the examples, I couldn't seem to figure out where the apple bounce effect can be seen in a demo. Is there any link to the capx for that? I'm able to make an object grow and bounce to the new size, but if i want the object to end the same size it started and would like to be sure i'm doing it the most efficient way.

https://dl.dropboxusercontent.com/u/55358831/LiteTweenStretch/index.html

Thanks!
Caleb
B
51
S
7
G
1
Posts: 869
Reputation: 5,943

Post » Sun Jan 12, 2014 9:54 pm

Also, is there anywhere that really explains what all of these various functions actually mean? I would love to understand what the difference between an EaseInOutCubic is different than EaseOutCircle, etc.

Disregard.. I found that info here, just overlooked before.

http://easings.net/ part12studios2014-01-12 21:56:24
B
51
S
7
G
1
Posts: 869
Reputation: 5,943

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests